Merge lp:~townsend/compiz/fix-lp1303068 into lp:compiz/0.9.11

Proposed by Christopher Townsend
Status: Merged
Approved by: Brandon Schaefer
Approved revision: 3851
Merged at revision: 3851
Proposed branch: lp:~townsend/compiz/fix-lp1303068
Merge into: lp:compiz/0.9.11
Diff against target: 44 lines (+20/-4)
1 file modified
src/window.cpp (+20/-4)
To merge this branch: bzr merge lp:~townsend/compiz/fix-lp1303068
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Brandon Schaefer (community) Approve
Review via email: mp+214531@code.launchpad.net

Commit message

Fix recent regression where the desktop window would not get focus when clicking the desktop.

Description of the change

Fix recent regression where the desktop window would not get focus when clicking the desktop.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
lp:~townsend/compiz/fix-lp1303068 updated
3851. By Christopher Townsend

Fix tab/space formatting.

Revision history for this message
Brandon Schaefer (brandontschaefer) wrote :

LGTM

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/window.cpp'
2--- src/window.cpp 2014-04-02 21:26:37 +0000
3+++ src/window.cpp 2014-04-07 16:18:48 +0000
4@@ -5620,14 +5620,15 @@
5 }
6 }
7
8- if (onlyActions || priv->type & CompWindowTypeDesktopMask)
9+ if (onlyActions)
10 screen->updatePassiveButtonGrabs(serverFrame);
11 else
12 {
13- /* Only grab buttons 1-3 */
14- for (int i = 1; i <= 3; i++)
15+ if (priv->type & CompWindowTypeDesktopMask)
16+ {
17+ /* Grab all buttons for the desktop window */
18 XGrabButton (screen->dpy (),
19- i,
20+ AnyButton,
21 AnyModifier,
22 serverFrame, false,
23 ButtonPressMask | ButtonReleaseMask | ButtonMotionMask,
24@@ -5635,6 +5636,21 @@
25 GrabModeAsync,
26 None,
27 None);
28+ }
29+ else
30+ {
31+ /* Only grab buttons 1-3 */
32+ for (int i = 1; i <= 3; i++)
33+ XGrabButton (screen->dpy (),
34+ i,
35+ AnyModifier,
36+ serverFrame, false,
37+ ButtonPressMask | ButtonReleaseMask | ButtonMotionMask,
38+ GrabModeSync,
39+ GrabModeAsync,
40+ None,
41+ None);
42+ }
43 }
44 }
45

Subscribers

People subscribed via source and target branches