branch: externals/exwm
commit f1d37b9a8c8d5dbe223b9099c09b2b25f0236c64
Author: Chris Feng <chris.w.f...@gmail.com>
Commit: Chris Feng <chris.w.f...@gmail.com>

    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 files changed, 2 insertions(+), 1 deletions(-)

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

Reply via email to