D23102: Reduce duplicate code calculating popup position
Vlad Zagorodniy
noreply at phabricator.kde.org
Tue Aug 13 09:17:37 BST 2019
zzag added inline comments.
INLINE COMMENTS
> zzag wrote in useractions.cpp:154-162
> I don't see why we have to ensure that QMenu doesn't fall off screen. QMenu already does that for us. Besides that our code is incomplete(only one out of three cases is handled) and incorrect(`y + popupHeight >= area.height()` is wrong).
>
> Remove `if (y != pos.top())` and everything that goes inside.
Why do we have this check? Well, that's a good question! I'd like to know why ;-)
REPOSITORY
R108 KWin
REVISION DETAIL
https://phabricator.kde.org/D23102
To: gladhorn, #kwin, romangg, zzag
Cc: zzag, 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/20190813/c9dd2964/attachment.html>
More information about the kwin
mailing list