[PATCH] Workaround GTK3 apps going into resize mode randomly. |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/sawfish Archives
]
- Subject: [PATCH] Workaround GTK3 apps going into resize mode randomly.
- From: "Guillermo S. Romero" <gsromer@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 12 Jul 2017 22:43:58 +0200
Just recognize _NET_WM_MOVERESIZE_CANCEL and ignore such calls for now.
---
lisp/sawfish/wm/state/wm-spec.jl | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/lisp/sawfish/wm/state/wm-spec.jl b/lisp/sawfish/wm/state/wm-spec.jl
index 5feb4822..8c171d1c 100644
--- a/lisp/sawfish/wm/state/wm-spec.jl
+++ b/lisp/sawfish/wm/state/wm-spec.jl
@@ -58,6 +58,7 @@
(defconst _NET_WM_MOVERESIZE_MOVE 8)
(defconst _NET_WM_MOVERESIZE_SIZE_KEYBOARD 9)
(defconst _NET_WM_MOVERESIZE_MOVE_KEYBOARD 10)
+ (defconst _NET_WM_MOVERESIZE_CANCEL 11)
(defconst _NET_WM_STATE_REMOVE 0)
(defconst _NET_WM_STATE_ADD 1)
@@ -94,6 +95,7 @@
_NET_WM_MOVERESIZE_SIZE_TOPRIGHT
_NET_WM_MOVERESIZE_SIZE_KEYBOARD
_NET_WM_MOVERESIZE_MOVE_KEYBOARD
+ _NET_WM_MOVERESIZE_CANCEL
_NET_WM_PING
_NET_WM_STATE
_NET_WM_STATE_ABOVE
@@ -522,7 +524,11 @@
'(left))
((eq mode _NET_WM_MOVERESIZE_SIZE_RIGHT)
'(right)))))
- (resize-window-interactively w))))))
+ ;; XXX ignore CANCELs for now
+ ;; XXX see reports about GTK3 going into resize randomly
+ ;; XXX probably need to rework all this block
+ (if (not (eq mode _NET_WM_MOVERESIZE_CANCEL))
+ (resize-window-interactively w)))))))
((_NET_NUMBER_OF_DESKTOPS)
(set-number-of-workspaces (aref data 0)))
--
2.13.2
--------------985A2CA4BE9B525AFCA9BBA8--
--
Sawfish ML