Support replacing and being replaced by other window managers

* exwm.el (exwm--on-SelectionClear, exwm--init-icccm-ewmh)
(exwm--exit-icccm-ewmh, exwm--wmsn-acquire, exwm--wmsn-release):
Get the window manager selection; die when it is cleared.
This commit is contained in:
Adrián Medraño Calvo 2018-03-06 00:00:00 +00:00
parent 350950abfc
commit 7aae6efdcd
2 changed files with 103 additions and 3 deletions

View file

@ -37,6 +37,15 @@
(defvar exwm--connection nil "X connection.")
(defvar exwm--wmsn-window nil
"An X window owning the WM_S0 selection.")
(defvar exwm--wmsn-acquire-timeout 3
"Number of seconds to wait for other window managers to release the selection.")
(defvar exwm--wmsn-replace 'ask
"Replace existing window manager.")
(defvar exwm--guide-window nil
"An X window separating workspaces and X windows.")