1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-22 07:09:54 +00:00

Fix 'window-toggle-side-windows' (Bug#50867)

* lisp/window.el (window-toggle-side-windows): Bind
'window-combination-resize' to t around 'window-state-put'
calls (Bug#50867).
This commit is contained in:
Martin Rudalics 2021-09-29 10:43:29 +02:00
parent 0d72beec9b
commit dcabf95275

View File

@ -1212,7 +1212,8 @@ it is found."
((setq state (frame-parameter frame 'window-state))
;; A window state was saved for FRAME. Restore it and put the
;; current root window into its main window.
(let ((main-state (window-state-get (frame-root-window frame))))
(let ((window-combination-resize t)
(main-state (window-state-get (frame-root-window frame))))
(window-state-put state (frame-root-window frame) t)
(window-state-put main-state (window-main-window frame)))
(window--sides-reverse-frame frame))