Bugfix: Correctly ignore clicks when client is in fullscreen mode (Thanks Sasha)

This commit is contained in:
Michael Stapelberg 2010-03-27 03:45:48 +01:00
parent fc555fa160
commit 112f17c690
1 changed files with 4 additions and 0 deletions

View File

@ -268,10 +268,14 @@ int handle_button_press(void *ignored, xcb_connection_t *conn, xcb_button_press_
(event->state & config.floating_modifier) == config.floating_modifier) { (event->state & config.floating_modifier) == config.floating_modifier) {
if (client == NULL) { if (client == NULL) {
DLOG("Not handling, floating_modifier was pressed and no client found\n"); DLOG("Not handling, floating_modifier was pressed and no client found\n");
xcb_allow_events(conn, XCB_ALLOW_REPLAY_POINTER, event->time);
xcb_flush(conn);
return 1; return 1;
} }
if (client->fullscreen) { if (client->fullscreen) {
DLOG("Not handling, client is in fullscreen mode\n"); DLOG("Not handling, client is in fullscreen mode\n");
xcb_allow_events(conn, XCB_ALLOW_REPLAY_POINTER, event->time);
xcb_flush(conn);
return 1; return 1;
} }
if (client_is_floating(client)) { if (client_is_floating(client)) {