bugfix: Skip inactive outputs on redraw (thx sECuRE)

This commit is contained in:
Axel Wagner 2011-03-19 22:30:59 +01:00
parent fea94757cd
commit 9f5b715bd6
1 changed files with 3 additions and 0 deletions

View File

@ -881,6 +881,9 @@ void draw_bars() {
void redraw_bars() { void redraw_bars() {
i3_output *outputs_walk; i3_output *outputs_walk;
SLIST_FOREACH(outputs_walk, outputs, slist) { SLIST_FOREACH(outputs_walk, outputs, slist) {
if (!outputs_walk->active) {
continue;
}
xcb_copy_area(xcb_connection, xcb_copy_area(xcb_connection,
outputs_walk->buffer, outputs_walk->buffer,
outputs_walk->bar, outputs_walk->bar,