From d05df51b0563b385da46384901c73daa073c28b9 Mon Sep 17 00:00:00 2001 From: Chris Feng Date: Mon, 26 Oct 2015 12:38:20 +0800 Subject: Fix problems introduced/exposed by last commit * exwm-workspace.el (exwm-workspace-switch, exwm-workspace--on-focus-in): Use handle-switch-frame instead of exwm-workspace--switch-count to filter out events. * exwm-workspace.el (exwm-workspace--init): Delay making workspaces fullscreen. * exwm-workspace.el (exwm-workspace-move-window): * exwm-floating.el (exwm-floating--set-floating): * exwm-layout.el (exwm-layout--refresh): `set-buffer-major-mode` does not accept buffer names. --- exwm-input.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'exwm-input.el') diff --git a/exwm-input.el b/exwm-input.el index f0bf6aa8b66c..8a9d089e2f5b 100644 --- a/exwm-input.el +++ b/exwm-input.el @@ -111,9 +111,7 @@ It's updated in several occasions, and only used by `exwm-input--set-focus'.") (defun exwm-input--update-focus () "Update input focus." - (when (and exwm-input--focus-window - ;; The Emacs window may have been deleted - (window-buffer exwm-input--focus-window)) + (when (window-live-p exwm-input--focus-window) (with-current-buffer (window-buffer exwm-input--focus-window) (if (eq major-mode 'exwm-mode) (if (not (eq exwm--frame exwm-workspace--current)) -- cgit 1.4.1