diff options
Diffstat (limited to 'src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx')
| -rw-r--r-- | src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx index 2a8013270..b7204d00c 100644 --- a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx @@ -1561,7 +1561,7 @@ static void xdg_toplevel_configure(void *v, struct xdg_toplevel *xdg_toplevel, struct configure_s *data = (struct configure_s*)v; data->W = width; data->H = height; - data->state = (states ? *(uint32_t *)(states->data) : 0); + data->state = (width && height && states ? *(uint32_t *)(states->data) : 0); } static const struct xdg_toplevel_listener xdg_toplevel_listener = { |
