Some fixes and improvements for desktop frame restoration.
commita47cbd64fa3565207417a49af9f3cfe1154b2f6e
authorJuanma Barranquero <lekktu@gmail.com>
Sun, 30 Jun 2013 05:08:23 +0000 (30 07:08 +0200)
committerJuanma Barranquero <lekktu@gmail.com>
Sun, 30 Jun 2013 05:08:23 +0000 (30 07:08 +0200)
tree9a131cf103e2b6d048e34b9fd29c3bf5ff924339
parent6dbafa3000c0f39834f36adcd56d9332f7f1bc85
Some fixes and improvements for desktop frame restoration.
It is still experimental and disabled by default.

* lisp/desktop.el (desktop--save-windows): Put the selected frame at
  the head of the list.
  (desktop--make-full-frame): New function.
  (desktop--restore-windows): Try to re-select the frame that was
  selected upon saving.  Do not abort if some frames fail to restore,
  just show an error message and contnue.  Set up maximized frames so
  they have default non-maximized dimensions.
lisp/ChangeLog
lisp/desktop.el