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:
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

View File

@ -525,7 +525,10 @@ int main(int argc, char *argv[]) {
break;
case XCB_EXPOSE:
handle_expose(NULL, conn, (xcb_expose_event_t *)event);
if (((xcb_expose_event_t *)event)->count == 0) {
handle_expose(NULL, conn, (xcb_expose_event_t *)event);
}
break;
}