about summary refs log tree commit diff
path: root/exwm-core.el
diff options
context:
space:
mode:
authorAdrián Medraño Calvo <adrian@medranocalvo.com>2018-03-06T00·00+0000
committerAdrián Medraño Calvo <adrian@medranocalvo.com>2018-03-06T00·00+0000
commit7aae6efdcd5d64c528315d08e49cdef2e956b540 (patch)
tree39d9111bc9c7bdc6bdce2a9f3b8956a33dca5cd1 /exwm-core.el
parent350950abfce892a1f6f6fc5023ae576801a253ca (diff)
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.
Diffstat (limited to 'exwm-core.el')
-rw-r--r--exwm-core.el9
1 files changed, 9 insertions, 0 deletions
diff --git a/exwm-core.el b/exwm-core.el
index 7fd3a61211be..355b8b96c0ba 100644
--- a/exwm-core.el
+++ b/exwm-core.el
@@ -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.")