Bugfix: Skip inactive outputs, when unmapping

This commit is contained in:
Axel Wagner 2011-03-19 23:28:10 +01:00
parent 49608121e0
commit a5a9afcf2e
1 changed files with 3 additions and 0 deletions

View File

@ -205,6 +205,9 @@ void hide_bars() {
i3_output *walk; i3_output *walk;
SLIST_FOREACH(walk, outputs, slist) { SLIST_FOREACH(walk, outputs, slist) {
if (!walk->active) {
continue;
}
xcb_unmap_window(xcb_connection, walk->bar); xcb_unmap_window(xcb_connection, walk->bar);
} }
stop_child(); stop_child();