diff options
author | James Ferguson <wjcferguson@gmail.com> | 2018-08-28T12·46-0400 |
---|---|---|
committer | Chris Feng <chris.w.feng@gmail.com> | 2018-09-02T08·18+0800 |
commit | 2399a0bb227e39ac3896a5cad15f3e2194438af5 (patch) | |
tree | 397bf696cf2297c78630706e017a38c006afbdfc | |
parent | 5f6b866cfed7214caabd5f5dd0f952cce93a307c (diff) |
Fix cursor warping conditional for cursor left of frame
-rw-r--r-- | exwm-workspace.el | 4 |
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 |