Fix window-state-put failing with dedicated flag on

Closes #36
This commit is contained in:
Vasilij Schneidermann
2015-06-20 13:32:34 +02:00
parent 390927c643
commit 7f92251f32

View File

@ -258,6 +258,11 @@ This function keeps the sortedness intact."
(defun eyebrowse--load-window-config (slot)
"Restore the window config from SLOT."
(-when-let (match (assq slot (eyebrowse--get 'window-configs)))
;; KLUDGE: workaround for #36
;; see also http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20848
(when (version<= emacs-version "24.5.1")
(delete-other-windows)
(set-window-dedicated-p nil nil))
(window-state-put (cadr match) (frame-root-window))))
(defun eyebrowse--read-slot ()