]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: ignore ConfigureNotify with width == 0 || height == 0 3165/head
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 9 Mar 2018 07:25:07 +0000 (08:25 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 9 Mar 2018 07:25:07 +0000 (08:25 +0100)
fixes #3132

i3-nagbar/main.c

index 7d38f73140d741c635aa0de25bd0e5809d94df75..e4628e303452feae75294e0de9208cc26ba5bc8e 100644 (file)
@@ -575,7 +575,9 @@ int main(int argc, char *argv[]) {
 
             case XCB_CONFIGURE_NOTIFY: {
                 xcb_configure_notify_event_t *configure_notify = (xcb_configure_notify_event_t *)event;
-                draw_util_surface_set_size(&bar, configure_notify->width, configure_notify->height);
+                if (configure_notify->width > 0 && configure_notify->height > 0) {
+                    draw_util_surface_set_size(&bar, configure_notify->width, configure_notify->height);
+                }
                 break;
             }
         }