]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Correctly ignore clicks when client is in fullscreen mode (Thanks Sasha)
authorMichael Stapelberg <michael@stapelberg.de>
Sat, 27 Mar 2010 02:45:48 +0000 (03:45 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 27 Mar 2010 02:45:48 +0000 (03:45 +0100)
src/click.c

index c8b9d23bb368cd04448ac83fb1ead7c7af652430..9f2a47ff22f45a2948d0e084253b0107cac84306 100644 (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) {
                 if (client == NULL) {
                         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;
                 }
                 if (client->fullscreen) {
                         DLOG("Not handling, client is in fullscreen mode\n");
+                        xcb_allow_events(conn, XCB_ALLOW_REPLAY_POINTER, event->time);
+                        xcb_flush(conn);
                         return 1;
                 }
                 if (client_is_floating(client)) {