X-Git-Url: https://git.sur5r.net/?p=i3%2Fi3;a=blobdiff_plain;f=i3bar%2Fsrc%2Fxcb.c;h=edef9b7e2dd1edbae31b4376c896f4c2edeedc8f;hp=d3bfca69dc6aea6ba1dffc7f5630a3940292fa00;hb=d58dbc3a77a27624e70fb4ffd149af2716502863;hpb=f80cbf7872bc9ced15ff0428d8c1edf79713791a diff --git a/i3bar/src/xcb.c b/i3bar/src/xcb.c index d3bfca69..edef9b7e 100644 --- a/i3bar/src/xcb.c +++ b/i3bar/src/xcb.c @@ -1149,8 +1149,11 @@ void xcb_chk_cb(struct ev_loop *loop, ev_check *watcher, int revents) { handle_visibility_notify((xcb_visibility_notify_event_t *)event); break; case XCB_EXPOSE: - /* Expose-events happen, when the window needs to be redrawn */ - redraw_bars(); + if (((xcb_expose_event_t *)event)->count == 0) { + /* Expose-events happen, when the window needs to be redrawn */ + redraw_bars(); + } + break; case XCB_BUTTON_PRESS: /* Button press events are mouse buttons clicked on one of our bars */