]> git.sur5r.net Git - i3/i3/commitdiff
i3bar: trigger an update after docking a new client
authorMichael Stapelberg <michael@stapelberg.de>
Mon, 15 Aug 2011 13:12:01 +0000 (15:12 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Tue, 23 Aug 2011 23:18:27 +0000 (01:18 +0200)
i3bar/src/xcb.c

index 35d90f77eb28d64018693794c9992747008a6b10..29b31aefe56e276463603c8b19b2c4570a56e72c 100644 (file)
@@ -418,6 +418,10 @@ void handle_client_message(xcb_client_message_event_t* event) {
             xcb_map_window(xcb_connection, client);
             /* XXX: We assume that icons are quadratic. Is that so? */
             output->traypx += font_height;
+
+            /* Trigger an update to copy the statusline text to the appropriate
+             * position */
+            draw_bars();
         }
     }
 }