+2013-07-21 Juanma Barranquero <lekktu@gmail.com>
+
+ * desktop.el: Correctly restore iconified frames.
+ (desktop--filter-iconified-position): New function.
+ (desktop-filter-parameters-alist): Add entries for `top' and `left'.
+
2013-07-20 Glenn Morris <rgm@gnu.org>
* progmodes/gdb-mi.el (gdb-delete-handler, gdb-stopped):
(foreground-color . desktop--filter-*-color)
(fullscreen . desktop--filter-save-desktop-parm)
(height . desktop--filter-save-desktop-parm)
+ (left . desktop--filter-iconified-position)
(minibuffer . desktop--filter-minibuffer)
(name . t)
(outer-window-id . t)
(parent-id . t)
+ (top . desktop--filter-iconified-position)
(tty . desktop--filter-tty*)
(tty-type . desktop--filter-tty*)
(width . desktop--filter-save-desktop-parm)
(cons (car current) val))))
(t t)))
+(defun desktop--filter-iconified-position (_current parameters saving)
+ ;; When saving an iconified frame, top & left are meaningless,
+ ;; so remove them to allow restoring to a default position.
+ (not (and saving (eq (cdr (assq 'visibility parameters)) 'icon))))
+
(defun desktop-restore-in-original-display-p ()
"True if saved frames' displays should be honored."
(cond ((daemonp) t)