D23102: Reduce duplicate code calculating popup position
Roman Gilg
noreply at phabricator.kde.org
Sun Aug 11 21:03:11 BST 2019
romangg added a comment.
Did you test the menu position in particular in edge cases?
INLINE COMMENTS
> useractions.cpp:155
> + if (y != pos.top()) {
> + Workspace *ws = Workspace::self();
> QRect area = ws->clientArea(ScreenArea, QPoint(x, y), VirtualDesktopManager::self()->current());
Remove local var and just call
Workspace::self()->clientArea(ScreenArea, QPoint(x, y),
VirtualDesktopManager::self()->current());
> useractions.cpp:163
> }
> + const bool needsPopup = kwinApp()->shouldUseWaylandForCompositing();
> + if (needsPopup) {
Thanks to your big duplicate reduction you can now remove the local var.
REPOSITORY
R108 KWin
REVISION DETAIL
https://phabricator.kde.org/D23102
To: gladhorn, #kwin
Cc: romangg, kwin, LeGast00n, sbergeron, jraleigh, fbampaloukas, GB_2, mkulinski, ragreen, jackyalcine, Pitel, iodelay, crozbo, bwowk, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwin/attachments/20190811/e1bda916/attachment-0001.html>
More information about the kwin
mailing list