aboutsummaryrefslogtreecommitdiff
path: root/i3-nagbar
diff options
context:
space:
mode:
authorIngo Bürk <admin@airblader.de>2017-01-13 18:34:58 +0100
committerMichael Stapelberg <stapelberg@users.noreply.github.com>2017-01-13 09:34:58 -0800
commitd58dbc3a77a27624e70fb4ffd149af2716502863 (patch)
tree542f5516ecb0164d016e49d0bcf891878d82adb0 /i3-nagbar
parentf80cbf7872bc9ced15ff0428d8c1edf79713791a (diff)
downloadi3-d58dbc3a77a27624e70fb4ffd149af2716502863.tar.gz
i3-d58dbc3a77a27624e70fb4ffd149af2716502863.zip
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.
Diffstat (limited to 'i3-nagbar')
-rw-r--r--i3-nagbar/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/i3-nagbar/main.c b/i3-nagbar/main.c
index b9f27a87..eb25e9cb 100644
--- a/i3-nagbar/main.c
+++ b/i3-nagbar/main.c
@@ -596,7 +596,10 @@ int main(int argc, char *argv[]) {
switch (type) {
case XCB_EXPOSE:
- handle_expose(conn, (xcb_expose_event_t *)event);
+ if (((xcb_expose_event_t *)event)->count == 0) {
+ handle_expose(conn, (xcb_expose_event_t *)event);
+ }
+
break;
case XCB_BUTTON_PRESS: