aboutsummaryrefslogtreecommitdiff
path: root/src/Screen.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Screen.cc')
-rw-r--r--src/Screen.cc8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/Screen.cc b/src/Screen.cc
index a97f1aa..bf5a625 100644
--- a/src/Screen.cc
+++ b/src/Screen.cc
@@ -832,11 +832,8 @@ void BScreen::propertyNotify(Atom atom) {
832} 832}
833 833
834void BScreen::keyPressEvent(XKeyEvent &ke) { 834void BScreen::keyPressEvent(XKeyEvent &ke) {
835 WinClient *old = WindowCmd<void>::client();
836 WindowCmd<void>::setWindow(FocusControl::focusedFbWindow());
837 Fluxbox::instance()->keys()->doAction(ke.type, ke.state, ke.keycode, 835 Fluxbox::instance()->keys()->doAction(ke.type, ke.state, ke.keycode,
838 Keys::GLOBAL|Keys::ON_DESKTOP); 836 Keys::GLOBAL|Keys::ON_DESKTOP);
839 WindowCmd<void>::setClient(old);
840} 837}
841 838
842void BScreen::keyReleaseEvent(XKeyEvent &ke) { 839void BScreen::keyReleaseEvent(XKeyEvent &ke) {
@@ -855,11 +852,8 @@ void BScreen::buttonPressEvent(XButtonEvent &be) {
855 imageControl().installRootColormap(); 852 imageControl().installRootColormap();
856 853
857 Keys *keys = Fluxbox::instance()->keys(); 854 Keys *keys = Fluxbox::instance()->keys();
858 WinClient *old = WindowCmd<void>::client();
859 WindowCmd<void>::setWindow(FocusControl::focusedFbWindow());
860 keys->doAction(be.type, be.state, be.button, Keys::GLOBAL|Keys::ON_DESKTOP, 855 keys->doAction(be.type, be.state, be.button, Keys::GLOBAL|Keys::ON_DESKTOP,
861 be.time); 856 0, be.time);
862 WindowCmd<void>::setClient(old);
863} 857}
864 858
865void BScreen::notifyUngrabKeyboard() { 859void BScreen::notifyUngrabKeyboard() {