X-Git-Url: https://git.sur5r.net/?p=i3%2Fi3;a=blobdiff_plain;f=src%2Frestore_layout.c;fp=src%2Frestore_layout.c;h=9edf4b11e1480a8bd762af57f103d3869e07615b;hp=d48e5c6ef6197496cd1b8be54bacc19b717622d6;hb=d58dbc3a77a27624e70fb4ffd149af2716502863;hpb=f80cbf7872bc9ced15ff0428d8c1edf79713791a diff --git a/src/restore_layout.c b/src/restore_layout.c index d48e5c6e..9edf4b11 100644 --- a/src/restore_layout.c +++ b/src/restore_layout.c @@ -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);