]> 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:20:16 +0000 (16:20 +0100)
src/floating.c

index 4177b6e5a0b71f2f8919dcc73bed5504be4defc9..07bc33105119a7a759ae7edb9e4df854a1b29fd0 100644 (file)
@@ -41,6 +41,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) {
                 LOG("This client is already in floating (container == NULL), re-inserting\n");
                 Client *next_tiling;