]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix 'window-toggle-side-windows' (Bug#50867)
authorMartin Rudalics <rudalics@gmx.at>
Wed, 29 Sep 2021 08:43:29 +0000 (10:43 +0200)
committerMartin Rudalics <rudalics@gmx.at>
Wed, 29 Sep 2021 08:43:29 +0000 (10:43 +0200)
* lisp/window.el (window-toggle-side-windows): Bind
'window-combination-resize' to t around 'window-state-put'
calls (Bug#50867).

lisp/window.el

index b240b16f2473a3f893070d7122e51662137a1471..971264b6344e28f9701b39acdb294fe2dbfb92de 100644 (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))