fix some potential bugs with window menus
Mark Tiefenbruck mark@fluxbox.org
1 files changed,
4 insertions(+),
0 deletions(-)
jump to
M
src/Screen.cc
→
src/Screen.cc
@@ -812,9 +812,11 @@ m_bg_change_sig.notify();
} void BScreen::keyPressEvent(XKeyEvent &ke) { + WinClient *old = WindowCmd<void>::client(); WindowCmd<void>::setWindow(FocusControl::focusedFbWindow()); Fluxbox::instance()->keys()->doAction(ke.type, ke.state, ke.keycode, Keys::GLOBAL|Keys::ON_DESKTOP); + WindowCmd<void>::setClient(old); } void BScreen::keyReleaseEvent(XKeyEvent &ke) {@@ -833,9 +835,11 @@ if (be.button == 1 && !isRootColormapInstalled())
imageControl().installRootColormap(); Keys *keys = Fluxbox::instance()->keys(); + WinClient *old = WindowCmd<void>::client(); WindowCmd<void>::setWindow(FocusControl::focusedFbWindow()); keys->doAction(be.type, be.state, be.button, Keys::GLOBAL|Keys::ON_DESKTOP, be.time); + WindowCmd<void>::setClient(old); } void BScreen::notifyUngrabKeyboard() {