[client] wayland: don't create confines on uncapture without wl_pointer

This commit is contained in:
Quantum authored and Geoffrey McRae committed 2021-12-24 10:17:16 +11:00
1 parent 194afa2d75
commit 94684324f4
1 file changed
+1 -1
+1 -1
View File
@@ -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,