Fix lost window state when toggling popups
Replaces af045213
with a method for preserving popup state.
This commit is contained in:
parent
d6695d4cf3
commit
be8eedc296
2 changed files with 13 additions and 17 deletions
|
@ -20,13 +20,6 @@ Modifying this has no effect, unless done before ui/popup loads.")
|
|||
(no-other-window . t))
|
||||
"The default window parameters.")
|
||||
|
||||
(defvar +popup-window-state-alist
|
||||
'((total-width . window-width)
|
||||
(total-height . window-height)
|
||||
(parameters . window-parameters))
|
||||
"An alist mapping `window-state-get' entries to display-buffer alist entries.
|
||||
Used by `+popup--normalize-alist'.")
|
||||
|
||||
(defvar +popup-margin-width 1
|
||||
"Size of the margins to give popup windows. Set this to nil to disable margin
|
||||
adjustment.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue