From 94684324f4c6c7781fe188729dd24051817f3433 Mon Sep 17 00:00:00 2001 From: Quantum Date: Thu, 23 Dec 2021 18:02:57 -0500 Subject: [PATCH] [client] wayland: don't create confines on uncapture without wl_pointer --- client/displayservers/Wayland/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/displayservers/Wayland/input.c b/client/displayservers/Wayland/input.c index 301ecb8b..df6c3390 100644 --- a/client/displayservers/Wayland/input.c +++ b/client/displayservers/Wayland/input.c @@ -534,7 +534,7 @@ void waylandUncapturePointer(void) */ if (!wlWm.warpSupport || !app_isFormatValid() || app_isCaptureOnlyMode()) internalUngrabPointer(false); - else + else if (wlWm.pointer) { wlWm.confinedPointer = zwp_pointer_constraints_v1_confine_pointer( wlWm.pointerConstraints, wlWm.surface, wlWm.pointer, NULL,