about summary refs log tree commit diff
path: root/exwm-core.el
diff options
context:
space:
mode:
authorChris Feng <chris.w.feng@gmail.com>2015-10-29T10·31+0800
committerChris Feng <chris.w.feng@gmail.com>2015-10-29T10·32+0800
commitb2ee10205177361a5f14dd11c4206b5ffd1cb98c (patch)
tree0bc4e0dbef4074a039b882eeb0e2bebcbbaaf4a9 /exwm-core.el
parentd9b4ba0265fc1674b1205a11e838f86bce434b13 (diff)
Improve robustness of killing buffers
* exwm-core.el (exwm-mode): Use the return value of
  exwm-manage--close-window.
* exwm-manage.el (exwm-manage--close-window): Kill empty buffers; Handle X
  windows that does not support _NET_WM_PING.
  (exwm-manage--kill-client): Kill X windows supporting _NET_WM_PID with
  both SIGKILL and KillClient.
Diffstat (limited to 'exwm-core.el')
-rw-r--r--exwm-core.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/exwm-core.el b/exwm-core.el
index ec7034737a0f..aaa98e394fc8 100644
--- a/exwm-core.el
+++ b/exwm-core.el
@@ -139,8 +139,7 @@
   ;; Kill buffer -> close window
   (add-hook 'kill-buffer-query-functions
             (lambda ()
-              (exwm-manage--close-window exwm--id (current-buffer))
-              nil)
+              (exwm-manage--close-window exwm--id (current-buffer)))
             nil t)
   (setq buffer-read-only t
         left-margin-width nil