about summary refs log tree commit diff
path: root/exwm-workspace.el
diff options
context:
space:
mode:
Diffstat (limited to 'exwm-workspace.el')
-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