aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
authorThomas Lübking <thomas.luebking@gmail.com>2016-07-04 19:55:23 (GMT)
committerThomas Lübking <thomas.luebking@gmail.com>2016-08-27 07:36:19 (GMT)
commit2c6647112667109b109e578ffd55ae8409c9e1af (patch)
treedea7cbb288f2eb286ff5cb7a3a5bd70e833572c6 /src/FbTk
parentecdaab5edf619d3cdc7bba9856d5f92068c28c83 (diff)
downloadfluxbox-2c6647112667109b109e578ffd55ae8409c9e1af.zip
fluxbox-2c6647112667109b109e578ffd55ae8409c9e1af.tar.bz2
Replay toolbar button events
NOTICE!!!! THIS IS HIGHLY EXPERIMENTAL! The patch alters the button grab mode to GrabSync in order to ReplayPointer the event. THIS CAN FREEZE ANY INPUT TO FLUXBOX!!! The toolbar (and other things?) grab buttons in order to handle MouseN events for the entire bar, INCLUDING all child windows. This causes two problems: 1. The bar handles events which are not meant for fluxbox at all (but the systray icons) BUG: 940 2. The bar will intercept (and suck) *every* press, even if only doubleclicks are desired BUG: 949 The problem with this patch is that an oversight here has the potential to completely freeze input event processing in fluxbox (ie. the process needs to be killed from outside), SO IT NEEDS TESTING! As much as possible.
Diffstat (limited to 'src/FbTk')
-rw-r--r--src/FbTk/KeyUtil.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FbTk/KeyUtil.cc b/src/FbTk/KeyUtil.cc
index 6661bb7..10bc118 100644
--- a/src/FbTk/KeyUtil.cc
+++ b/src/FbTk/KeyUtil.cc
@@ -144,7 +144,7 @@ void KeyUtil::grabButton(unsigned int button, unsigned int mod, Window win,
144 for (int i = 0; i < 8; i++) { 144 for (int i = 0; i < 8; i++) {
145 XGrabButton(display, button, mod | (i & 1 ? LockMask : 0) | 145 XGrabButton(display, button, mod | (i & 1 ? LockMask : 0) |
146 (i & 2 ? nummod : 0) | (i & 4 ? scrollmod : 0), 146 (i & 2 ? nummod : 0) | (i & 4 ? scrollmod : 0),
147 win, False, event_mask, GrabModeAsync, GrabModeAsync, 147 win, False, event_mask, GrabModeSync, GrabModeAsync,
148 None, cursor); 148 None, cursor);
149 } 149 }
150 150