mirror of
https://github.com/ch11ng/exwm.git
synced 2024-11-23 19:47:58 +01:00
Restack fullscreen X windows
* exwm-layout.el (exwm-layout-set-fullscreen) (exwm-layout-unset-fullscreen): Raise and lower fullscreen X windows respectively.
This commit is contained in:
parent
f0a5425f4c
commit
a50e6bd384
1 changed files with 22 additions and 7 deletions
|
@ -165,6 +165,12 @@
|
||||||
(exwm-layout--resize-container exwm--id exwm--container 0 0
|
(exwm-layout--resize-container exwm--id exwm--container 0 0
|
||||||
(exwm-workspace--current-width)
|
(exwm-workspace--current-width)
|
||||||
(exwm-workspace--current-height))
|
(exwm-workspace--current-height))
|
||||||
|
;; Raise the X window.
|
||||||
|
(xcb:+request exwm--connection
|
||||||
|
(make-instance 'xcb:ConfigureWindow
|
||||||
|
:window exwm--container
|
||||||
|
:value-mask xcb:ConfigWindow:StackMode
|
||||||
|
:stack-mode xcb:StackMode:Above))
|
||||||
(xcb:+request exwm--connection
|
(xcb:+request exwm--connection
|
||||||
(make-instance 'xcb:ewmh:set-_NET_WM_STATE
|
(make-instance 'xcb:ewmh:set-_NET_WM_STATE
|
||||||
:window exwm--id
|
:window exwm--id
|
||||||
|
@ -180,8 +186,8 @@
|
||||||
(with-current-buffer (if id (exwm--id->buffer id) (window-buffer))
|
(with-current-buffer (if id (exwm--id->buffer id) (window-buffer))
|
||||||
(unless exwm--fullscreen
|
(unless exwm--fullscreen
|
||||||
(user-error "Not in full-screen mode."))
|
(user-error "Not in full-screen mode."))
|
||||||
;; Restore the floating frame if the client is floating
|
(if exwm--floating-frame
|
||||||
(when exwm--floating-frame
|
;; Restore the floating frame.
|
||||||
(xcb:+request exwm--connection
|
(xcb:+request exwm--connection
|
||||||
(make-instance 'xcb:ConfigureWindow
|
(make-instance 'xcb:ConfigureWindow
|
||||||
:window exwm--container
|
:window exwm--container
|
||||||
|
@ -189,7 +195,16 @@
|
||||||
(logior xcb:ConfigWindow:X
|
(logior xcb:ConfigWindow:X
|
||||||
xcb:ConfigWindow:Y))
|
xcb:ConfigWindow:Y))
|
||||||
:x (elt exwm--floating-frame-position 0)
|
:x (elt exwm--floating-frame-position 0)
|
||||||
:y (elt exwm--floating-frame-position 1))))
|
:y (elt exwm--floating-frame-position 1)))
|
||||||
|
;; Put the X window just above the Emacs frame.
|
||||||
|
(xcb:+request exwm--connection
|
||||||
|
(make-instance 'xcb:ConfigureWindow
|
||||||
|
:window exwm--container
|
||||||
|
:value-mask (logior xcb:ConfigWindow:Sibling
|
||||||
|
xcb:ConfigWindow:StackMode)
|
||||||
|
:sibling (frame-parameter exwm-workspace--current
|
||||||
|
'exwm-container)
|
||||||
|
:stack-mode xcb:StackMode:Above)))
|
||||||
(exwm-layout--show exwm--id)
|
(exwm-layout--show exwm--id)
|
||||||
(xcb:+request exwm--connection
|
(xcb:+request exwm--connection
|
||||||
(make-instance 'xcb:ewmh:set-_NET_WM_STATE :window exwm--id :data []))
|
(make-instance 'xcb:ewmh:set-_NET_WM_STATE :window exwm--id :data []))
|
||||||
|
|
Loading…
Reference in a new issue