all repos — fluxbox @ 4bd62b771c483144e939629cb95a4fafd5943b43

custom fork of the fluxbox windowmanager

fix some potential bugs with window menus
Mark Tiefenbruck mark@fluxbox.org
commit

4bd62b771c483144e939629cb95a4fafd5943b43

parent

d03edf29641fa833aa636f2a195f3f810fa366c6

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M src/Screen.ccsrc/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() {