From 701448c342b08b7517fb9700211cb4d53e307609 Mon Sep 17 00:00:00 2001
From: Axel Wagner <mail@merovius.de>
Date: Wed, 25 Aug 2010 21:50:01 +0200
Subject: [PATCH] Unhide on urgent-hint

---
 i3bar/src/xcb.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/i3bar/src/xcb.c b/i3bar/src/xcb.c
index f5a50686..a974ead9 100644
--- a/i3bar/src/xcb.c
+++ b/i3bar/src/xcb.c
@@ -638,6 +638,8 @@ void draw_bars() {
             if (ws_walk->urgent) {
                 printf("WS %s is urgent!\n", ws_walk->name);
                 color = get_colorpixel("002400");
+                /* The urgent-hint should get noticed, so we unhide the bars shortly */
+                unhide_bars();
             }
             xcb_change_gc(xcb_connection,
                           outputs_walk->bargc,