about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJames Ferguson <wjcferguson@gmail.com>2018-08-28T12·46-0400
committerChris Feng <chris.w.feng@gmail.com>2018-09-02T08·18+0800
commit2399a0bb227e39ac3896a5cad15f3e2194438af5 (patch)
tree397bf696cf2297c78630706e017a38c006afbdfc
parent5f6b866cfed7214caabd5f5dd0f952cce93a307c (diff)
Fix cursor warping conditional for cursor left of frame
-rw-r--r--exwm-workspace.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/exwm-workspace.el b/exwm-workspace.el
index 4d82ae596302..a4454d10f0e1 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