D15887: Fix Klipper popup opening on default screen instead of at cursor position
David Edmundson
noreply at phabricator.kde.org
Thu Oct 4 17:46:27 BST 2018
davidedmundson added a comment.
Code in system tray is quite good:
if (QScreen *screen = appletInterface->window()->screen()) {
const QRect geo = screen->availableGeometry();
pos = QPoint(qBound(geo.left(), (int)pos.x(), geo.right() - desktopMenu->width()),
qBound(geo.top(), (int)pos.y(), geo.bottom() - desktopMenu->height()));
}
it binds it to the availableGeometry so it always appears outside of struts (panels)
REVISION DETAIL
https://phabricator.kde.org/D15887
To: romangeints, #plasma, davidedmundson
Cc: romangeints, plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20181004/c40de4a4/attachment-0001.html>
More information about the Plasma-devel
mailing list