about summary refs log tree commit diff
path: root/exwm.el
diff options
context:
space:
mode:
authorChris Feng <chris.w.feng@gmail.com>2016-07-31T05·14+0800
committerChris Feng <chris.w.feng@gmail.com>2016-07-31T05·14+0800
commita3dba8edd9001e89e24c204b9186fdf8b444e78c (patch)
tree1862f4665fc293bf5c9b27d26dd8f0898867f878 /exwm.el
parent1e78045f958edbb2f3ef7c21953f8b55b3bbae42 (diff)
Fix restarting issues
* exwm-workspace.el (exwm-workspace--confirm-kill-emacs):
* exwm.el (exwm-restart): Run `kill-emacs-hook' early; do not check for
X windows before restarting.
Diffstat (limited to 'exwm.el')
-rw-r--r--exwm.el8
1 files changed, 2 insertions, 6 deletions
diff --git a/exwm.el b/exwm.el
index b04990b32946..9a593d5ecac0 100644
--- a/exwm.el
+++ b/exwm.el
@@ -87,15 +87,11 @@
 (defun exwm-restart ()
   "Restart EXWM."
   (interactive)
-  (when (exwm-workspace--confirm-kill-emacs "[EXWM] Restart? ")
-    (server-force-delete)
-    (run-hooks 'kill-emacs-hook)
-    ;; FIXME: more?
+  (when (exwm-workspace--confirm-kill-emacs "[EXWM] Restart? " 'no-check)
     (apply #'call-process (car command-line-args) nil nil nil
            (cdr command-line-args))
     ;; Kill this instance at last.
-    (let ((kill-emacs-hook nil))
-      (kill-emacs))))
+    (kill-emacs)))
 
 (defun exwm--update-window-type (id &optional force)
   "Update _NET_WM_WINDOW_TYPE."