mirror of
https://github.com/emacs-exwm/exwm.git
synced 2024-11-27 14:57:59 +01:00
Stop hiding the minibuffer when a message is being displayed
* exwm-workspace.el (exwm-workspace--echo-area-maybe-clear): New function that postpones hiding the minibuffer when it's displaying a message. (exwm-workspace--on-echo-area-dirty): Use it.
This commit is contained in:
parent
dbccda22a6
commit
0dd909a11b
1 changed files with 12 additions and 1 deletions
|
@ -1203,7 +1203,18 @@ Please check `exwm-workspace--minibuffer-own-frame-p' first."
|
||||||
input-method-use-echo-area)
|
input-method-use-echo-area)
|
||||||
(setq exwm-workspace--display-echo-area-timer
|
(setq exwm-workspace--display-echo-area-timer
|
||||||
(run-with-timer exwm-workspace-display-echo-area-timeout nil
|
(run-with-timer exwm-workspace-display-echo-area-timeout nil
|
||||||
#'exwm-workspace--on-echo-area-clear)))))
|
#'exwm-workspace--echo-area-maybe-clear)))))
|
||||||
|
|
||||||
|
(defun exwm-workspace--echo-area-maybe-clear ()
|
||||||
|
"Eventually clear the echo area container."
|
||||||
|
(exwm--log)
|
||||||
|
(if (not (current-message))
|
||||||
|
(exwm-workspace--on-echo-area-clear)
|
||||||
|
;; Reschedule.
|
||||||
|
(cancel-timer exwm-workspace--display-echo-area-timer)
|
||||||
|
(setq exwm-workspace--display-echo-area-timer
|
||||||
|
(run-with-timer exwm-workspace-display-echo-area-timeout nil
|
||||||
|
#'exwm-workspace--echo-area-maybe-clear))))
|
||||||
|
|
||||||
(defun exwm-workspace--on-echo-area-clear ()
|
(defun exwm-workspace--on-echo-area-clear ()
|
||||||
"Run in echo-area-clear-hook to hide echo area container."
|
"Run in echo-area-clear-hook to hide echo area container."
|
||||||
|
|
Loading…
Reference in a new issue