about summary refs log tree commit diff
path: root/exwm-workspace.el
diff options
context:
space:
mode:
authorChris Feng <chris.w.feng@gmail.com>2015-08-07T12·22+0800
committerChris Feng <chris.w.feng@gmail.com>2015-08-07T12·22+0800
commit84f0f0328b173af82c873e395353bd9a6c3bf1f6 (patch)
tree38c8c7ed82b9f67ff4b854cd6a71f8b7f369461f /exwm-workspace.el
parent2ad1a89db0c9e3704c79294620c5ed4925b143eb (diff)
Fix input focus lost after closing window
Also insert some debug messages.
Diffstat (limited to 'exwm-workspace.el')
-rw-r--r--exwm-workspace.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/exwm-workspace.el b/exwm-workspace.el
index b1755435efc4..da3f9ce4bce6 100644
--- a/exwm-workspace.el
+++ b/exwm-workspace.el
@@ -152,7 +152,9 @@ The optional FORCE option is for internal use only."
   "Fix unexpected frame switch."
   (unless exwm-workspace--switch-lock
     (let ((index (cl-position (selected-frame) exwm-workspace--list)))
+      (exwm--log "Focus on workspace %s" index)
       (when (and index (/= index exwm-workspace-current-index))
+        (exwm--log "Workspace was switched unexpectedly")
         (exwm-workspace-switch index)))))
 
 (defun exwm-workspace-move-window (index &optional id)