diff options
Diffstat (limited to 'exwm-manage.el')
-rw-r--r-- | exwm-manage.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/exwm-manage.el b/exwm-manage.el index 0d2c74f4f16f..7c82696fb7f2 100644 --- a/exwm-manage.el +++ b/exwm-manage.el @@ -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." |