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

This commit is contained in:
Quantum 2021-12-23 18:02:57 -05:00 committed by Geoffrey McRae
parent 194afa2d75
commit 94684324f4

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,