Skip to content

Commit

Permalink
Merge pull request #3165 from stapelberg/nagbar
Browse files Browse the repository at this point in the history
Bugfix: ignore ConfigureNotify with width == 0 || height == 0
  • Loading branch information
Airblader committed Mar 9, 2018
2 parents 4b4fba0 + 021d40f commit 29dc14d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion i3-nagbar/main.c
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 29dc14d

Please sign in to comment.