Fix cursor warping conditional for cursor left of frame

This commit is contained in:
James Ferguson 2018-08-28 08:46:14 -04:00 committed by Chris Feng
parent 5f6b866cfe
commit 2399a0bb22

View file

@ -610,7 +610,9 @@ for internal use only."
(make-instance 'xcb:QueryPointer (make-instance 'xcb:QueryPointer
:window (frame-parameter frame :window (frame-parameter frame
'exwm-outer-id))) '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))) (> win-y (frame-pixel-height)))
(xcb:+request exwm--connection (xcb:+request exwm--connection
(make-instance 'xcb:WarpPointer (make-instance 'xcb:WarpPointer