diff options
author | Chris Feng <chris.w.feng@gmail.com> | 2016-07-31T05·14+0800 |
---|---|---|
committer | Chris Feng <chris.w.feng@gmail.com> | 2016-07-31T05·14+0800 |
commit | a3dba8edd9001e89e24c204b9186fdf8b444e78c (patch) | |
tree | 1862f4665fc293bf5c9b27d26dd8f0898867f878 /exwm.el | |
parent | 1e78045f958edbb2f3ef7c21953f8b55b3bbae42 (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.el | 8 |
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." |