"the least oversight" #1

The fixes a permanent (sync) button grab.

Well, oversaw global buttonpresses.
Let's wait for more to come ;-)
This commit is contained in:
Thomas Lübking 2016-09-20 22:59:19 +02:00
parent 53bb2407c9
commit 1fc2602499

View file

@ -689,8 +689,12 @@ void BScreen::buttonPressEvent(XButtonEvent &be) {
imageControl().installRootColormap(); imageControl().installRootColormap();
Keys *keys = Fluxbox::instance()->keys(); Keys *keys = Fluxbox::instance()->keys();
keys->doAction(be.type, be.state, be.button, Keys::GLOBAL|Keys::ON_DESKTOP, if (keys->doAction(be.type, be.state, be.button, Keys::GLOBAL|Keys::ON_DESKTOP,
0, be.time); 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) { void BScreen::cycleFocus(int options, const ClientPattern *pat, bool reverse) {