bugfix: Skip inactive outputs on redraw (thx sECuRE)

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

View File

@ -951,6 +951,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,