Fix cursor warping conditional for cursor left of frame

This commit is contained in:
James Ferguson 2018-08-28 08:46:14 -04:00
parent 2b1ed2ce70
commit f00e02e4f5

View file

@ -609,7 +609,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