]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Correctly check for floating mode in the buttonpress handler (Thanks Mirko)
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 19 Jun 2009 20:48:18 +0000 (22:48 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 19 Jun 2009 20:48:18 +0000 (22:48 +0200)
src/handlers.c

index 2d4afc71bda549d4af8b0604f05340406a7d21f4..803c6f3b18e9704d49f50dc1071a1e64fcd1ff81 100644 (file)
@@ -309,7 +309,7 @@ int handle_button_press(void *ignored, xcb_connection_t *conn, xcb_button_press_
                         LOG("Not handling, Mod1 was pressed and no client found\n");
                         return 1;
                 }
-                if (client->floating) {
+                if (client->floating >= FLOATING_AUTO_ON) {
                         floating_drag_window(conn, client, event);
                         return 1;
                 }