Merge lp:~3v1n0/compiz/scale-multimonitor-workarea into lp:compiz/0.9.12

Proposed by Marco Trevisan (Treviño) on 2015-11-16
Status: Merged
Approved by: Eleni Maria Stea on 2015-11-16
Approved revision: 3989
Merged at revision: 3990
Proposed branch: lp:~3v1n0/compiz/scale-multimonitor-workarea
Merge into: lp:compiz/0.9.12
Diff against target: 11 lines (+1/-1)
1 file modified
plugins/scale/src/scale.cpp (+1/-1)
To merge this branch: bzr merge lp:~3v1n0/compiz/scale-multimonitor-workarea
Reviewer Review Type Date Requested Status
Compiz Maintainers 2015-11-16 Pending
Review via email: mp+277561@code.launchpad.net

Commit message

Scale: use current monitor workarea to check whether the mouse is inside or not

We need to care about multimonitor, and struts.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/scale/src/scale.cpp'
2--- plugins/scale/src/scale.cpp 2014-06-06 09:41:41 +0000
3+++ plugins/scale/src/scale.cpp 2015-11-16 12:16:20 +0000
4@@ -1749,7 +1749,7 @@
5 else if (optionGetClickOnDesktop () != ScaleOptions::ClickOnDesktopNone)
6 {
7 CompPoint pointer (button->x_root, button->y_root);
8- CompRect workArea (screen->workArea ());
9+ CompRect workArea (screen->currentOutputDev ().workArea ());
10 workArea.setX (workArea.x() + optionGetXOffset ());
11 workArea.setY (workArea.y() + optionGetYOffset ());
12

Subscribers

People subscribed via source and target branches