about summary refs log tree commit diff
path: root/exwm-workspace.el
diff options
context:
space:
mode:
authorChris Feng <chris.w.feng@gmail.com>2016-03-03T11·34+0800
committerChris Feng <chris.w.feng@gmail.com>2016-03-03T11·34+0800
commitfe9be0b3efab284dae9eb1de37e97a70a9e08bd2 (patch)
tree8c9f69fc6cbc0ba85c30f67764a76f643e7d6f29 /exwm-workspace.el
parent93e42136e3eba95c129c92a928b0c27517f2af7e (diff)
Handle buffer change after a buffer is killed
* exwm-manage.el (exwm-manage--kill-buffer-query-function): Handle buffer
change.

* exwm-workspace.el (exwm-workspace--show-minibuffer): Revert the change
made in 93e42136 (the problem has not been fully resolved).
Diffstat (limited to 'exwm-workspace.el')
-rw-r--r--exwm-workspace.el10
1 files changed, 9 insertions, 1 deletions
diff --git a/exwm-workspace.el b/exwm-workspace.el
index 6fc38d4a32..b2fb648304 100644
--- a/exwm-workspace.el
+++ b/exwm-workspace.el
@@ -513,7 +513,15 @@ The optional FORCE option is for internal use only."
       (make-instance 'xcb:MapWindow
                      :window (frame-parameter exwm-workspace--minibuffer
                                               'exwm-container)))
-  (xcb:flush exwm--connection))
+  (xcb:flush exwm--connection)
+  ;; Unfortunately we need the following lines to workaround a cursor
+  ;; flickering issue for line-mode floating X windows.  They just make the
+  ;; minibuffer appear to be focused.
+  (with-current-buffer (window-buffer (minibuffer-window
+                                       exwm-workspace--minibuffer))
+    (setq cursor-in-non-selected-windows
+          (frame-parameter exwm-workspace--minibuffer 'cursor-type))))
+
 
 (defun exwm-workspace--hide-minibuffer ()
   "Hide the minibuffer frame."