From 55047c1633736e44cc6538e03af77c87a15ebf42 Mon Sep 17 00:00:00 2001
From: Axel Wagner <mail@merovius.de>
Date: Fri, 6 Aug 2010 05:52:01 +0200
Subject: [PATCH] Refresh the workspace-list on output-events

---
 i3bar/src/ipc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/i3bar/src/ipc.c b/i3bar/src/ipc.c
index 271cd339..83ae4cec 100644
--- a/i3bar/src/ipc.c
+++ b/i3bar/src/ipc.c
@@ -68,6 +68,7 @@ void got_workspace_event(char *event) {
 void got_output_event(char *event) {
     printf("Got Output Event!\n");
     i3_send_msg(I3_IPC_MESSAGE_TYPE_GET_OUTPUTS, NULL);
+    i3_send_msg(I3_IPC_MESSAGE_TYPE_GET_WORKSPACES, NULL);
 }
 
 handler_t event_handlers[] = {