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.
This commit is contained in:
parent
d9b4ba0265
commit
b2ee102051
2 changed files with 40 additions and 32 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue