From 2399a0bb227e39ac3896a5cad15f3e2194438af5 Mon Sep 17 00:00:00 2001 From: James Ferguson Date: Tue, 28 Aug 2018 08:46:14 -0400 Subject: [PATCH] Fix cursor warping conditional for cursor left of frame --- exwm-workspace.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/exwm-workspace.el b/exwm-workspace.el index 4d82ae5..a4454d1 100644 --- a/exwm-workspace.el +++ b/exwm-workspace.el @@ -610,7 +610,9 @@ for internal use only." (make-instance 'xcb:QueryPointer :window (frame-parameter frame 'exwm-outer-id))) - (when (or (> win-x (frame-pixel-width frame)) + (when (or (< win-x 0) + (< win-y 0) + (> win-x (frame-pixel-width frame)) (> win-y (frame-pixel-height))) (xcb:+request exwm--connection (make-instance 'xcb:WarpPointer