Don't immediately unminimize an initially iconic window (#491090)

2008-03-28  Owen Taylor  <otaylor@redhat.com>

        * src/core/window.c (meta_window_new_with_attrs): Don't
        immediately unminimize an initially iconic window (#491090)


svn path=/trunk/; revision=3667
This commit is contained in:
Owen Taylor 2008-03-28 18:44:59 +00:00 committed by Thomas James Alexander Thurman
parent 9730f15411
commit 58ef1592a5
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-03-28 Owen Taylor <otaylor@redhat.com>
* src/core/window.c (meta_window_new_with_attrs): Don't
immediately unminimize an initially iconic window (#491090)
2008-03-27 Thomas Thurman <tthurman@gnome.org> 2008-03-27 Thomas Thurman <tthurman@gnome.org>
* src/core/session.c (regenerate_save_file, save_state, load_state): * src/core/session.c (regenerate_save_file, save_state, load_state):

View File

@ -799,8 +799,11 @@ meta_window_new_with_attrs (MetaDisplay *display,
* However, we shouldn't unminimize windows here when opening * However, we shouldn't unminimize windows here when opening
* a new display because that breaks passing _NET_WM_STATE_HIDDEN * a new display because that breaks passing _NET_WM_STATE_HIDDEN
* between window managers when replacing them; see bug 358042. * between window managers when replacing them; see bug 358042.
*
* And we shouldn't unminimize windows if they were initially
* iconic.
*/ */
if (!display->display_opening) if (!display->display_opening && !window->initially_iconic)
unminimize_window_and_all_transient_parents (window); unminimize_window_and_all_transient_parents (window);
meta_error_trap_pop (display, FALSE); /* pop the XSync()-reducing trap */ meta_error_trap_pop (display, FALSE); /* pop the XSync()-reducing trap */