Manage a certain type of undecorated X windows
* exwm-core.el (exwm--mwm-hints): Removed. (exwm--mwm-hints-decorations): New buffer-local variable for indicating whether the X window should have decorations. * exwm-floating.el (exwm-floating--set-floating): Hide the mode-line of undecorated floating X windows by default. * exwm-manage.el (exwm-manage--update-mwm-hints): Set exwm--mwm-hints-decorations; (exwm-manage--manage-window): Manage an undecorated X window if its input model is not 'No Input' or 'Globally Active'.
This commit is contained in:
parent
1b2ae3749e
commit
3dba5f156f
3 changed files with 22 additions and 9 deletions
|
@ -159,6 +159,12 @@
|
|||
(- (elt edges 2) (elt edges 0)))))
|
||||
(frame-height (+ height (- (frame-pixel-height frame)
|
||||
(- (elt edges 3) (elt edges 1))))))
|
||||
;; Check `exwm--mwm-hints-decorations'.
|
||||
(unless exwm--mwm-hints-decorations
|
||||
(setq frame-height (- frame-height (window-mode-line-height
|
||||
(frame-root-window frame)))
|
||||
exwm--mode-line-format mode-line-format
|
||||
mode-line-format nil))
|
||||
(set-frame-size frame frame-width frame-height t)
|
||||
;; Create the frame container as the parent of the frame and
|
||||
;; a child of the X window container.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue