From 021d40f6661ae960fc639c3d0d4e355663cc83df Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 9 Mar 2018 08:25:07 +0100 Subject: [PATCH] Bugfix: ignore ConfigureNotify with width == 0 || height == 0 fixes #3132 --- i3-nagbar/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/i3-nagbar/main.c b/i3-nagbar/main.c index 7d38f731..e4628e30 100644 --- a/i3-nagbar/main.c +++ b/i3-nagbar/main.c @@ -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; } } -- 2.39.5