about summary refs log tree commit diff
path: root/exwm-core.el
diff options
context:
space:
mode:
authorChris Feng <chris.w.feng@gmail.com>2016-02-18T11·56+0800
committerChris Feng <chris.w.feng@gmail.com>2016-02-18T11·56+0800
commit3f7722079cebd0d998239ce40457899135250a15 (patch)
tree42e535f9699607b96c74f4bc881bcbb804f12657 /exwm-core.el
parent12e2d574c916ec7b93b645c0d0bf2e1fb0ce342a (diff)
Fix floating X window bugs introduced by 9c95c03e
* exwm-floating.el (exwm-floating--set-floating): Make floating frames
invisible before resizing them.
(exwm-floating--fit-frame-to-window): Removed since unused.
* exwm-layout.el (exwm-layout-hide-mode-line, exwm-layout-show-mode-line):
Use set frame height instead of exwm-floating--fit-frame-to-window.

* exwm-core.el (exwm-mode): Replace `exwm-manage--close-window' with
`exwm-manage--kill-buffer-query-function'.
* exwm-floating.el (exwm-floating--unset-floating): Reparent out floating
frames.
* exwm-manage.el (exwm-manage--unmanage-window): Reparent out floating
frames.  Hide floating frames.
(exwm-manage--close-window, exwm-manage--kill-buffer-query-function):
Rename `exwm-manage--close-window' since it's only used in
`kill-buffer-query-functions'.  Reparent out floating frames.
Diffstat (limited to 'exwm-core.el')
-rw-r--r--exwm-core.el4
1 files changed, 1 insertions, 3 deletions
diff --git a/exwm-core.el b/exwm-core.el
index 9430b43548c8..b09ca52c0c5a 100644
--- a/exwm-core.el
+++ b/exwm-core.el
@@ -142,9 +142,7 @@
   (add-hook 'change-major-mode-hook #'kill-buffer nil t)
   ;; Kill buffer -> close window
   (add-hook 'kill-buffer-query-functions
-            (lambda ()
-              (exwm-manage--close-window exwm--id (current-buffer)))
-            nil t)
+            #'exwm-manage--kill-buffer-query-function nil t)
   (setq buffer-read-only t
         left-margin-width nil
         right-margin-width nil