about summary refs log tree commit diff
path: root/exwm-manage.el
diff options
context:
space:
mode:
authorChris Feng <chris.w.feng@gmail.com>2018-07-29T00·00+0000
committerChris Feng <chris.w.feng@gmail.com>2018-07-29T00·00+0000
commit13a14579cc1bb772735f895dd5b4b90c6812f3ee (patch)
tree27b606b15e130b5d0b7418b60795b4f50879c801 /exwm-manage.el
parent7e5750392c08e662420631395352d1e76a792a51 (diff)
Fix issues with destroying full screen X windows
* exwm-manage.el (exwm-manage--unmanage-window): Set the Emacs window
of an full screen X window as non-dedicated before killing its buffer
so as not to cause other side effects.
Diffstat (limited to 'exwm-manage.el')
-rw-r--r--exwm-manage.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/exwm-manage.el b/exwm-manage.el
index a0a9e05948..349157f1ff 100644
--- a/exwm-manage.el
+++ b/exwm-manage.el
@@ -392,6 +392,10 @@ manager is shutting down."
                                :window window :parent exwm--root :x 0 :y 0))
             (xcb:+request exwm--connection
                 (make-instance 'xcb:DestroyWindow :window container))))
+        (when (exwm-layout--fullscreen-p)
+          (let ((window (get-buffer-window)))
+            (when window
+              (set-window-dedicated-p window nil))))
         (exwm-manage--set-client-list)
         (xcb:flush exwm--connection))
       (let ((kill-buffer-func