Pass proper click coordinates to SNI ContextMenu calls
ClosedPublic

Authored by fvogt on Mar 23 2018, 8:56 AM.

Details

Summary

Currently it always passes the top left corner of the SNI icon as coordinates,
but now it passes the actual click coordinates.
They can be outside of the icon's bounds (for instance if you click on the
label in the expanded tray), but they are converted to global coordinates
anyway.

Test Plan

Now the context menu drawn by the application properly follows the
cursor.

Diff Detail

Repository
R120 Plasma Workspace
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
fvogt created this revision.Mar 23 2018, 8:56 AM
Restricted Application added a project: Plasma. · View Herald TranscriptMar 23 2018, 8:56 AM
fvogt requested review of this revision.Mar 23 2018, 8:56 AM
davidedmundson accepted this revision.Mar 23 2018, 11:53 AM
This revision is now accepted and ready to land.Mar 23 2018, 11:53 AM
This revision was automatically updated to reflect the committed changes.