diff options
author | Chris Feng <chris.w.feng@gmail.com> | 2015-09-03T10·56+0800 |
---|---|---|
committer | Chris Feng <chris.w.feng@gmail.com> | 2015-09-03T10·56+0800 |
commit | f1d37b9a8c8d5dbe223b9099c09b2b25f0236c64 (patch) | |
tree | 41b869b5981141d95d3056cda0105adefecf049d /exwm-floating.el | |
parent | 9eee94e530d40d190a9bc6b5c345d17491b674de (diff) |
Ungrab pointer timely when resizing is aborted
* exwm-floating.el (exwm-floating--start-moveresize): when resizing type cannot be decided, ungrab the previously grabbed pointer.
Diffstat (limited to 'exwm-floating.el')
-rw-r--r-- | exwm-floating.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/exwm-floating.el b/exwm-floating.el index 0b4f327f8b71..851a586decda 100644 --- a/exwm-floating.el +++ b/exwm-floating.el @@ -278,7 +278,8 @@ ((> x 2) xcb:ewmh:_NET_WM_MOVERESIZE_SIZE_RIGHT) ((> y 2) xcb:ewmh:_NET_WM_MOVERESIZE_SIZE_BOTTOM) ((< x 1) xcb:ewmh:_NET_WM_MOVERESIZE_SIZE_LEFT)))) - (when type + (if (not type) + (exwm-floating--stop-moveresize) (cond ((= type xcb:ewmh:_NET_WM_MOVERESIZE_MOVE) (setq cursor exwm-floating--cursor-move exwm-floating--moveresize-calculate |