mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-10-06 18:28:04 +00:00
desktop-shell: Don't assume there is a pointer when resizing
Fixes a crash on touch devices without a pointer, when touching the window frame of a client. Signed-off-by: Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
This commit is contained in:
parent
28ee518305
commit
5872b6821b
|
@ -1849,7 +1849,8 @@ common_surface_resize(struct wl_resource *resource,
|
|||
struct shell_surface *shsurf = wl_resource_get_user_data(resource);
|
||||
struct weston_surface *surface;
|
||||
|
||||
if (seat->pointer->button_count == 0 ||
|
||||
if (seat->pointer == NULL ||
|
||||
seat->pointer->button_count == 0 ||
|
||||
seat->pointer->grab_serial != serial ||
|
||||
seat->pointer->focus == NULL)
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue