Fix emacsclient related issues

* exwm-systemtray.el (exwm-systemtray-height): The value is not available
when emacsclient has just loaded the library (and it crashes emacsclient).

* exwm-workspace.el (exwm-workspace--init): Set `default-minibuffer-frame'
later to prevent it from being modified when using emacsclient.

* exwm-floating.el:
* exwm-randr.el:
* exwm-systemtray.el:
* exwm-workspace.el:
* exwm.el: Use `exwm-workspace--minibuffer-own-frame-p' instead of the raw
variable.
This commit is contained in:
Chris Feng 2016-02-21 20:19:45 +08:00
parent 7116b01b0c
commit 55cec760ca
5 changed files with 15 additions and 16 deletions

View file

@ -462,7 +462,7 @@
(let* ((workareas
(vector 0 0 (x-display-pixel-width)
(- (x-display-pixel-height)
(if exwm-workspace-minibuffer-position
(if (exwm-workspace--minibuffer-own-frame-p)
0
(window-pixel-height (minibuffer-window))))))
(workareas (mapconcat (lambda (_) workareas)