mirror of
https://github.com/fltk/fltk.git
synced 2026-05-10 05:27:55 +08:00
Wayland: remove memory access error while computing screen work area
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user