about summary refs log tree commit diff
path: root/exwm.el
diff options
context:
space:
mode:
authorAdrián Medraño Calvo <adrian@medranocalvo.com>2023-06-14T00·00+0000
committerAdrián Medraño Calvo <adrian@medranocalvo.com>2023-06-14T00·00+0000
commitb100eb74c520e5db1e27db475af8464a236efecb (patch)
treefda2ceef37cd5e93596410213c323306e14128d0 /exwm.el
parenta417f0d45e73f75028ba17ae49c664e3548deeba (diff)
parent7318f857f2937c421094d66d976d4e926feacc71 (diff)
Merge branch 'nbarrientos.github.com/ib_exwm_conn_nil' into externals/exwm
Diffstat (limited to 'exwm.el')
-rw-r--r--exwm.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/exwm.el b/exwm.el
index 345f76beb6..31fe684955 100644
--- a/exwm.el
+++ b/exwm.el
@@ -907,12 +907,12 @@ manager.  If t, replace it, if nil, abort and ask the user if `ask'."
   (run-hooks 'exwm-exit-hook)
   (setq confirm-kill-emacs nil)
   ;; Exit modules.
-  (exwm-input--exit)
-  (exwm-manage--exit)
-  (exwm-workspace--exit)
-  (exwm-floating--exit)
-  (exwm-layout--exit)
   (when exwm--connection
+    (exwm-input--exit)
+    (exwm-manage--exit)
+    (exwm-workspace--exit)
+    (exwm-floating--exit)
+    (exwm-layout--exit)
     (xcb:flush exwm--connection)
     (xcb:disconnect exwm--connection))
   (setq exwm--connection nil)