From 84f0f0328b173af82c873e395353bd9a6c3bf1f6 Mon Sep 17 00:00:00 2001 From: Chris Feng Date: Fri, 7 Aug 2015 20:22:12 +0800 Subject: Fix input focus lost after closing window Also insert some debug messages. --- exwm-layout.el | 3 +++ 1 file changed, 3 insertions(+) (limited to 'exwm-layout.el') diff --git a/exwm-layout.el b/exwm-layout.el index 7630b688e2b0..1dd8333bb420 100644 --- a/exwm-layout.el +++ b/exwm-layout.el @@ -28,6 +28,7 @@ (defun exwm-layout--show (id &optional window) "Show window ID exactly fit in the Emacs window WINDOW." + (exwm--log "Show #x%x in %s" id window) (xcb:+request exwm--connection (make-instance 'xcb:MapWindow :window id)) (xcb:+request exwm--connection (make-instance 'xcb:icccm:set-WM_STATE @@ -69,6 +70,7 @@ "Hide window ID." (unless (eq xcb:icccm:WM_STATE:IconicState ;already hidden (with-current-buffer (exwm--id->buffer id) exwm-state)) + (exwm--log "Hide #x%x" id) (xcb:+request exwm--connection (make-instance 'xcb:ChangeWindowAttributes :window id :value-mask xcb:CW:EventMask @@ -162,6 +164,7 @@ "Refresh layout." (unless (compare-window-configurations exwm-layout--window-configuration (current-window-configuration)) + (exwm--log "Refresh layout") (setq exwm-layout--window-configuration (current-window-configuration)) (let ((frame (selected-frame)) windows) -- cgit 1.4.1