From 6efa7a754d5120a207b2dc8af0efdafdff64c450 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 15 Aug 2011 15:12:01 +0200 Subject: [PATCH] i3bar: trigger an update after docking a new client --- i3bar/src/xcb.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/i3bar/src/xcb.c b/i3bar/src/xcb.c index 35d90f77..29b31aef 100644 --- a/i3bar/src/xcb.c +++ b/i3bar/src/xcb.c @@ -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(); } } } -- 2.39.5