Only react on the last Expose event in a series of events. (#2636)
Thanks to @psychon for pointing this out during the review of PR #2624. This commit extends this change to all other occurences of Expose events within i3.
This commit is contained in:
committed by
Michael Stapelberg
parent
f80cbf7872
commit
d58dbc3a77
@ -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 */
|
||||
|
Reference in New Issue
Block a user