diff options
author | Chris Feng <chris.w.feng@gmail.com> | 2016-03-04T11·11+0800 |
---|---|---|
committer | Chris Feng <chris.w.feng@gmail.com> | 2016-03-04T11·11+0800 |
commit | 8706e490fb07617145a32ba9eaffd4ee37f67d87 (patch) | |
tree | 3abd170eb1f3906ef211db90ca5156e2c4af65bf /exwm-manage.el | |
parent | fe9be0b3efab284dae9eb1de37e97a70a9e08bd2 (diff) |
Allow moving/resizing undecorated X windows
* exwm-manage.el (exwm-manage--manage-window): Do not manage undecorated floating X windows (set in _MOTIF_WM_HINTS). * exwm-floating.el (exwm-floating--start-moveresize) (exwm-floating--stop-moveresize, exwm-floating--do-moveresize): Allow moving/resizing undecorated X windows with _NET_WM_MOVERESIZE client message.
Diffstat (limited to 'exwm-manage.el')
-rw-r--r-- | exwm-manage.el | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/exwm-manage.el b/exwm-manage.el index 659e4267b789..9f9c844c86be 100644 --- a/exwm-manage.el +++ b/exwm-manage.el @@ -99,15 +99,12 @@ corresponding buffer.") (memq xcb:Atom:_NET_WM_WINDOW_TYPE_UTILITY exwm-window-type) (memq xcb:Atom:_NET_WM_WINDOW_TYPE_DIALOG exwm-window-type) (memq xcb:Atom:_NET_WM_WINDOW_TYPE_NORMAL exwm-window-type))) - ;; Check _MOTIF_WM_HINTS for Java applications - ;; See <Xm/MwmUtil.h> for the definitions of these fields + ;; Check the _MOTIF_WM_HINTS property. (and exwm--mwm-hints - exwm-instance-name + ;; See <Xm/MwmUtil.h> for fields definitions. (/= 0 (logand (elt exwm--mwm-hints 0) ;MotifWmHints.flags 2)) ;MWM_HINTS_DECORATIONS (= 0 (elt exwm--mwm-hints 2)) ;MotifWmHints.decorations - ;; Java applications only - (string-prefix-p "sun-awt-X11-" exwm-instance-name) ;; Floating windows only (or exwm-transient-for exwm--fixed-size (memq xcb:Atom:_NET_WM_WINDOW_TYPE_UTILITY |