Merge lp:~townsend/compiz/fix-unfocused-scrolling into lp:compiz/0.9.12

Proposed by Christopher Townsend
Status: Merged
Approved by: Marco Trevisan (Treviño)
Approved revision: 3875
Merged at revision: 3875
Proposed branch: lp:~townsend/compiz/fix-unfocused-scrolling
Merge into: lp:compiz/0.9.12
Diff against target: 16 lines (+5/-0)
1 file modified
src/window.cpp (+5/-0)
To merge this branch: bzr merge lp:~townsend/compiz/fix-unfocused-scrolling
Reviewer Review Type Date Requested Status
Marco Trevisan (Treviño) Approve
Review via email: mp+223739@code.launchpad.net

Commit message

Add more button ungrab keymasks, so unfocused Gtk window scrolling will work when NumLock is off and CapsLock is on and any combination thereof.

Description of the change

Add more button ungrab keymasks, so unfocused Gtk window scrolling will work when NumLock is off and CapsLock is on and any combination thereof.

To post a comment you must log in.
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

That's exactly how I would have done it! ;-)
+1

review: Approve

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-06-06 09:42:26 +0000
3+++ src/window.cpp 2014-06-19 13:31:17 +0000
4@@ -5652,7 +5652,12 @@
5 {
6 /* Ungrab Buttons 4 & 5 for vertical scrolling if the window is not the desktop window */
7 for (int i = Button4; i <= Button5; ++i)
8+ {
9+ XUngrabButton (screen->dpy (), i, 0, frame);
10+ XUngrabButton (screen->dpy (), i, LockMask, frame);
11 XUngrabButton (screen->dpy (), i, Mod2Mask, frame);
12+ XUngrabButton (screen->dpy (), i, LockMask | Mod2Mask, frame);
13+ }
14 }
15 }
16 }

Subscribers

People subscribed via source and target branches