Only react on the last Expose event in a series of events. ()

Thanks to @psychon for pointing this out during the review of PR .
This commit extends this change to all other occurences of Expose events
within i3.
This commit is contained in:
Ingo Bürk
2017-01-13 18:34:58 +01:00
committed by Michael Stapelberg
parent f80cbf7872
commit d58dbc3a77
6 changed files with 25 additions and 7 deletions
i3-config-wizard
i3-input
i3-nagbar
i3bar/src
src

@ -360,7 +360,10 @@ static void configure_notify(xcb_configure_notify_event_t *event) {
static void restore_handle_event(int type, xcb_generic_event_t *event) {
switch (type) {
case XCB_EXPOSE:
expose_event((xcb_expose_event_t *)event);
if (((xcb_expose_event_t *)event)->count == 0) {
expose_event((xcb_expose_event_t *)event);
}
break;
case XCB_CONFIGURE_NOTIFY:
configure_notify((xcb_configure_notify_event_t *)event);