Popups: don't dedicate window if has :same t rule #309

This commit is contained in:
Henrik Lissner 2018-01-01 21:48:59 -05:00
parent 2c7c9c6d94
commit fd62e8e0b1
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -308,7 +308,8 @@ without leaving any trace behind (muahaha)."
;; `switch-to-buffer-other-window' won't use this window).
(set-window-parameter window 'no-other-window doom-popup-mode)
;; Makes popup window resist interactively changing its buffer.
(set-window-dedicated-p window doom-popup-mode)
(unless (plist-get doom-popup-rules :same)
(set-window-dedicated-p window doom-popup-mode))
(cond (doom-popup-mode
(when doom-popup-no-fringes
(set-window-fringes window 0 0 fringes-outside-margins))