diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2025-12-06 10:02:11 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2025-12-06 10:02:11 +0100 |
| commit | a4ebd8564deb83237d1b21250ebbe388aad30940 (patch) | |
| tree | 241cb86ee85ed4fa2fdb052159673c87a4206259 /src | |
| parent | b1d3ee13bd1be3fefda2be490ce773afab2ade04 (diff) | |
Wayland: remove memory access error while computing screen work area
Diffstat (limited to 'src')
| -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 = { |
