"the least oversight" #1 The fixes a permanent (sync) button grab. Well, oversaw global buttonpresses. Let's wait for more to come ;-)
Thomas Lübking thomas.luebking@gmail.com
1 files changed,
6 insertions(+),
2 deletions(-)
jump to
M
src/Screen.cc
→
src/Screen.cc
@@ -689,8 +689,12 @@ if (be.button == 1 && !isRootColormapInstalled())
imageControl().installRootColormap(); Keys *keys = Fluxbox::instance()->keys(); - keys->doAction(be.type, be.state, be.button, Keys::GLOBAL|Keys::ON_DESKTOP, - 0, be.time); + if (keys->doAction(be.type, be.state, be.button, Keys::GLOBAL|Keys::ON_DESKTOP, + 0, be.time)) { + XAllowEvents(Fluxbox::instance()->display(), SyncPointer, CurrentTime); + } else { + XAllowEvents(Fluxbox::instance()->display(), ReplayPointer, CurrentTime); + } } void BScreen::cycleFocus(int options, const ClientPattern *pat, bool reverse) {