summaryrefslogtreecommitdiff
path: root/src/Screen.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Screen.cc')
-rw-r--r--src/Screen.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Screen.cc b/src/Screen.cc
index 9002ad2..e3b08c6 100644
--- a/src/Screen.cc
+++ b/src/Screen.cc
@@ -812,9 +812,11 @@ void BScreen::propertyNotify(Atom atom) {
812} 812}
813 813
814void BScreen::keyPressEvent(XKeyEvent &ke) { 814void BScreen::keyPressEvent(XKeyEvent &ke) {
815 WinClient *old = WindowCmd<void>::client();
815 WindowCmd<void>::setWindow(FocusControl::focusedFbWindow()); 816 WindowCmd<void>::setWindow(FocusControl::focusedFbWindow());
816 Fluxbox::instance()->keys()->doAction(ke.type, ke.state, ke.keycode, 817 Fluxbox::instance()->keys()->doAction(ke.type, ke.state, ke.keycode,
817 Keys::GLOBAL|Keys::ON_DESKTOP); 818 Keys::GLOBAL|Keys::ON_DESKTOP);
819 WindowCmd<void>::setClient(old);
818} 820}
819 821
820void BScreen::keyReleaseEvent(XKeyEvent &ke) { 822void BScreen::keyReleaseEvent(XKeyEvent &ke) {
@@ -833,9 +835,11 @@ void BScreen::buttonPressEvent(XButtonEvent &be) {
833 imageControl().installRootColormap(); 835 imageControl().installRootColormap();
834 836
835 Keys *keys = Fluxbox::instance()->keys(); 837 Keys *keys = Fluxbox::instance()->keys();
838 WinClient *old = WindowCmd<void>::client();
836 WindowCmd<void>::setWindow(FocusControl::focusedFbWindow()); 839 WindowCmd<void>::setWindow(FocusControl::focusedFbWindow());
837 keys->doAction(be.type, be.state, be.button, Keys::GLOBAL|Keys::ON_DESKTOP, 840 keys->doAction(be.type, be.state, be.button, Keys::GLOBAL|Keys::ON_DESKTOP,
838 be.time); 841 be.time);
842 WindowCmd<void>::setClient(old);
839} 843}
840 844
841void BScreen::notifyUngrabKeyboard() { 845void BScreen::notifyUngrabKeyboard() {