mirror of
https://github.com/emacs-exwm/exwm.git
synced 2024-11-23 21:17:59 +01:00
Fix wrong stacking order of tiling X windows
* exwm-manage.el (exwm-manage--on-MapNotify): Avoid restacking tiling X windows on the top when force triggering hierarchy change events.
This commit is contained in:
parent
9dcfff568f
commit
d650159648
1 changed files with 14 additions and 5 deletions
|
@ -674,11 +674,20 @@ border-width: %d; sibling: #x%x; stack-mode: %d"
|
||||||
(exwm--log "id=#x%x" window)
|
(exwm--log "id=#x%x" window)
|
||||||
;; With this we ensure that a "window hierarchy change" happens after
|
;; With this we ensure that a "window hierarchy change" happens after
|
||||||
;; mapping the window, as some servers (XQuartz) do not generate it.
|
;; mapping the window, as some servers (XQuartz) do not generate it.
|
||||||
(xcb:+request exwm--connection
|
(with-current-buffer (exwm--id->buffer window)
|
||||||
(make-instance 'xcb:ConfigureWindow
|
(if exwm--floating-frame
|
||||||
:window window
|
(xcb:+request exwm--connection
|
||||||
:value-mask xcb:ConfigWindow:StackMode
|
(make-instance 'xcb:ConfigureWindow
|
||||||
:stack-mode xcb:StackMode:Above))
|
:window window
|
||||||
|
:value-mask xcb:ConfigWindow:StackMode
|
||||||
|
:stack-mode xcb:StackMode:Above))
|
||||||
|
(xcb:+request exwm--connection
|
||||||
|
(make-instance 'xcb:ConfigureWindow
|
||||||
|
:window window
|
||||||
|
:value-mask (logior xcb:ConfigWindow:Sibling
|
||||||
|
xcb:ConfigWindow:StackMode)
|
||||||
|
:sibling exwm--guide-window
|
||||||
|
:stack-mode xcb:StackMode:Above))))
|
||||||
(xcb:flush exwm--connection)))))
|
(xcb:flush exwm--connection)))))
|
||||||
|
|
||||||
(defun exwm-manage--on-DestroyNotify (data synthetic)
|
(defun exwm-manage--on-DestroyNotify (data synthetic)
|
||||||
|
|
Loading…
Reference in a new issue