From f1d37b9a8c8d5dbe223b9099c09b2b25f0236c64 Mon Sep 17 00:00:00 2001 From: Chris Feng Date: Thu, 3 Sep 2015 18:56:36 +0800 Subject: [PATCH] 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. --- exwm-floating.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exwm-floating.el b/exwm-floating.el index 0b4f327..851a586 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