aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Lübking <thomas.luebking@gmail.com>2016-09-20 20:59:19 (GMT)
committerThomas Lübking <thomas.luebking@gmail.com>2016-09-21 18:05:01 (GMT)
commit1fc2602499d43d6e563a1281f8e13405000849ee (patch)
treeb224781f4490b92e1c06942033d031e3064e085b /src
parent53bb2407c918e1f5b8cf88aa87ec76a2b66f76e2 (diff)
downloadfluxbox-1fc2602499d43d6e563a1281f8e13405000849ee.zip
fluxbox-1fc2602499d43d6e563a1281f8e13405000849ee.tar.bz2
"the least oversight" #1
The fixes a permanent (sync) button grab. Well, oversaw global buttonpresses. Let's wait for more to come ;-)
Diffstat (limited to 'src')
-rw-r--r--src/Screen.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Screen.cc b/src/Screen.cc
index a4a0922..1205d79 100644
--- a/src/Screen.cc
+++ b/src/Screen.cc
@@ -689,8 +689,12 @@ void BScreen::buttonPressEvent(XButtonEvent &be) {
689 imageControl().installRootColormap(); 689 imageControl().installRootColormap();
690 690
691 Keys *keys = Fluxbox::instance()->keys(); 691 Keys *keys = Fluxbox::instance()->keys();
692 keys->doAction(be.type, be.state, be.button, Keys::GLOBAL|Keys::ON_DESKTOP, 692 if (keys->doAction(be.type, be.state, be.button, Keys::GLOBAL|Keys::ON_DESKTOP,
693 0, be.time); 693 0, be.time)) {
694 XAllowEvents(Fluxbox::instance()->display(), SyncPointer, CurrentTime);
695 } else {
696 XAllowEvents(Fluxbox::instance()->display(), ReplayPointer, CurrentTime);
697 }
694} 698}
695 699
696void BScreen::cycleFocus(int options, const ClientPattern *pat, bool reverse) { 700void BScreen::cycleFocus(int options, const ClientPattern *pat, bool reverse) {