mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
(Wayland) Check for pointer before locking it (#15130)
Signed-off-by: Colin Kinloch <colin.kinloch@collabora.com>
This commit is contained in:
parent
a6e6ddf425
commit
2101400bf4
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user