Fix input focus lost after closing window

Also insert some debug messages.
This commit is contained in:
Chris Feng 2015-08-07 20:22:12 +08:00
parent 2ad1a89db0
commit 84f0f0328b
4 changed files with 34 additions and 12 deletions

View file

@ -178,8 +178,10 @@ corresponding buffer.")
:window id :property xcb:Atom:WM_STATE))
(xcb:flush exwm--connection))
(setq kill-buffer-query-functions nil)
(kill-buffer)
(select-frame-set-input-focus exwm-workspace--current)))))
(let ((floating exwm--floating-frame))
(kill-buffer)
(when floating
(select-frame-set-input-focus exwm-workspace--current)))))))
(defun exwm-manage--scan ()
"Search for existing windows and try to manage them."