From 589a73c8ea302b223e722c75ee165bb29e5a9847 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 19 Jun 2009 22:48:18 +0200 Subject: [PATCH] Bugfix: Correctly check for floating mode in the buttonpress handler (Thanks Mirko) --- src/handlers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handlers.c b/src/handlers.c index 2d4afc71..803c6f3b 100644 --- a/src/handlers.c +++ b/src/handlers.c @@ -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; } -- 2.39.5