(Wayland) Check for pointer before locking it (#15130)

Signed-off-by: Colin Kinloch <colin.kinloch@collabora.com>
This commit is contained in:
Colin Kinloch 2023-03-24 21:40:38 +00:00 committed by GitHub
parent a6e6ddf425
commit 2101400bf4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -424,7 +424,7 @@ static void input_wl_grab_mouse(void *data, bool state)
input_ctx_wayland_data_t *wl = (input_ctx_wayland_data_t*)data;
gfx_ctx_wayland_data_t *gfx = (gfx_ctx_wayland_data_t*)wl->gfx;
if (gfx->pointer_constraints)
if (gfx->pointer_constraints && gfx->wl_pointer)
{
if (state && !gfx->locked_pointer)
{