Merge pull request #3165 from stapelberg/nagbar

Bugfix: ignore ConfigureNotify with width == 0 || height == 0
This commit is contained in:
Ingo Bürk 2018-03-09 08:40:19 +01:00 committed by GitHub
commit 29dc14dda3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -575,7 +575,9 @@ int main(int argc, char *argv[]) {
case XCB_CONFIGURE_NOTIFY: { case XCB_CONFIGURE_NOTIFY: {
xcb_configure_notify_event_t *configure_notify = (xcb_configure_notify_event_t *)event; 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; break;
} }
} }