]> git.sur5r.net Git - i3/i3/commitdiff
Query workspaces again in i3bar when an output change occured. (#2760)
authorIngo Bürk <admin@airblader.de>
Tue, 2 May 2017 07:11:35 +0000 (09:11 +0200)
committerMichael Stapelberg <stapelberg@users.noreply.github.com>
Tue, 2 May 2017 07:11:35 +0000 (09:11 +0200)
As of 2f0f8b1, i3bar will properly clean up on output change events.
However, this requires us to query the workspaces again to avoid a
display error in i3bar.

fixes #2740
fixes #2743

i3bar/src/ipc.c

index 459684ef32dc70afd3f065ae01a41d0b12f12a92..042e230a522ce3eeb43f535993f3fbe16ba978ed 100644 (file)
@@ -79,6 +79,10 @@ void got_output_reply(char *reply) {
         kick_tray_clients(o_walk);
     }
 
+    if (!config.disable_ws) {
+        i3_send_msg(I3_IPC_MESSAGE_TYPE_GET_WORKSPACES, NULL);
+    }
+
     draw_bars(false);
 }