about summary refs log tree commit diff
path: root/exwm-input.el
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-02-06T21·43+0100
committerFelix Lange <fjl@twurst.com>2016-02-06T21·43+0100
commit00065234749054940563f59a0027a53bc5ebffad (patch)
tree5215c9f0965cc3c7e94cd39b14b39de30a9af26c /exwm-input.el
parent97daba20ad22f05f2e4c1347ff86d6c957142a0a (diff)
Resize minibuffer only when it's in its own frame
0e4055d3392 introduced a few calls to exwm-workspace--resize-minibuffer
in various places. This function only works when the minibuffer is
displayed in its own frame but was called unconditionally in some cases.

Fix it by wrapping all calls in an appropriate conditional and add an
assertion. Also rename the function so it is clearer that it resizes a
frame, which might prevent calling it unconditionally in the future.
Diffstat (limited to 'exwm-input.el')
-rw-r--r--exwm-input.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/exwm-input.el b/exwm-input.el
index 757efb756641..85be1efb2023 100644
--- a/exwm-input.el
+++ b/exwm-input.el
@@ -111,7 +111,7 @@ It's updated in several occasions, and only used by `exwm-input--set-focus'.")
             (exwm-input--set-focus exwm--id)
             ;; Adjust stacking orders
             (when exwm--floating-frame
-              (if (memq exwm-workspace-minibuffer-position '(top bottom))
+              (if (exwm-workspace--minibuffer-own-frame-p)
                   ;; Put this floating X window just below the minibuffer.
                   (xcb:+request exwm--connection
                       (make-instance 'xcb:ConfigureWindow