Resize minibuffer only when it's in its own frame

0e4055d339 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.
This commit is contained in:
Felix Lange 2016-02-06 22:43:32 +01:00
parent 97daba20ad
commit 0006523474
4 changed files with 17 additions and 10 deletions

View file

@ -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