diff options
-rw-r--r-- | src/Screen.cc | 8 |
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 | ||
696 | void BScreen::cycleFocus(int options, const ClientPattern *pat, bool reverse) { | 700 | void BScreen::cycleFocus(int options, const ClientPattern *pat, bool reverse) { |