]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Don’t put dock clients into floating mode (Thanks xeen)
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 1 Jan 2010 15:19:42 +0000 (16:19 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 1 Jan 2010 15:19:42 +0000 (16:19 +0100)
src/floating.c

index 2facc6cf5fa19e5b96440ede35325a23f5243780..1e7a4fac784aed00c0753970f4a3f1e07bf27fa7 100644 (file)
@@ -42,6 +42,11 @@ void toggle_floating_mode(xcb_connection_t *conn, Client *client, bool automatic
         Container *con = client->container;
         i3Font *font = load_font(conn, config.font);
 
+        if (client->dock) {
+                DLOG("Not putting dock client into floating mode\n");
+                return;
+        }
+
         if (con == NULL) {
                 DLOG("This client is already in floating (container == NULL), re-inserting\n");
                 Client *next_tiling;