diff options
author | Chris Feng <chris.w.feng@gmail.com> | 2015-08-25T11·22+0800 |
---|---|---|
committer | Chris Feng <chris.w.feng@gmail.com> | 2015-08-25T11·22+0800 |
commit | 874c383672e42cc642aca8b470afe394b39a1965 (patch) | |
tree | c239d14d23de92060bccff662f1fb2f1f11b682c /exwm.el | |
parent | 5210e13e7c95d0d8f94c657efa13e71fad4ef818 (diff) | |
parent | 94bdbfc0da7c8ef14acdc8aa4e73dc1c8fee9700 (diff) |
Merge pull request #42 from pipcet/ewmh-fullscreen
Avoid using the "no window manager" code in Emacs
Diffstat (limited to 'exwm.el')
-rw-r--r-- | exwm.el | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/exwm.el b/exwm.el index 7dffa87aec4b..a52e11419d3a 100644 --- a/exwm.el +++ b/exwm.el @@ -441,6 +441,20 @@ (props (list (elt data 1) (elt data 2))) (buffer (exwm--id->buffer id)) props-new) + ;; only support _NET_WM_STATE_FULLSCREEN / _NET_WM_STATE_ADD for frames + (when (and (not buffer) + (memq xcb:Atom:_NET_WM_STATE_FULLSCREEN props) + (= action xcb:ewmh:_NET_WM_STATE_ADD)) + (dolist (f exwm-workspace--list) + (when (equal (frame-parameter f 'exwm-outer-id) id) + (exwm-layout--set-frame-fullscreen f) + (xcb:+request + exwm--connection + (make-instance 'xcb:ewmh:set-_NET_WM_STATE + :window id + :data (vector + xcb:Atom:_NET_WM_STATE_FULLSCREEN))) + (xcb:flush exwm--connection)))) (when buffer ;ensure it's managed (with-current-buffer buffer ;; _NET_WM_STATE_MODAL @@ -609,14 +623,14 @@ ;; (xcb:icccm:init exwm--connection) (xcb:ewmh:init exwm--connection) (exwm--lock) - (exwm-workspace--init) (exwm--init-icccm-ewmh) (exwm-layout--init) (exwm-floating--init) (exwm-manage--init) (exwm-input--init) (exwm--unlock) - ;; Manage exiting windows + (exwm-workspace--init) + ;; Manage existing windows (exwm-manage--scan) (run-hooks 'exwm-init-hook))))) |