diff options
author | Elijah Newren <newren@gmail.com> | 2005-05-26 17:15:56 +0000 |
---|---|---|
committer | Elijah Newren <newren@src.gnome.org> | 2005-05-26 17:15:56 +0000 |
commit | eb46b01e97e0111c096fb60953de26fcb8779e87 (patch) | |
tree | a3a95c35864558330884979a205cd927aeec5435 /src | |
parent | b71671f94fb184f8929caa23dbe937f622597f2f (diff) | |
download | metacity-eb46b01e97e0111c096fb60953de26fcb8779e87.tar.gz |
put all transients of the new window, if any exist, in the calc_showing
2005-05-26 Elijah Newren <newren@gmail.com>
* src/window.c: (meta_window_new_with_attrs): put all transients
of the new window, if any exist, in the calc_showing queue. Fixes
#303284.
Diffstat (limited to 'src')
-rw-r--r-- | src/window.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c index 445224a2..d605b4fc 100644 --- a/src/window.c +++ b/src/window.c @@ -106,6 +106,9 @@ static void meta_window_update_icon_now (MetaWindow *window); void meta_window_unqueue_update_icon (MetaWindow *window); void meta_window_flush_update_icon (MetaWindow *window); +static gboolean queue_calc_showing_func (MetaWindow *window, + void *data); + static void meta_window_apply_session_info (MetaWindow *window, const MetaWindowSessionInfo *info); @@ -720,6 +723,12 @@ meta_window_new_with_attrs (MetaDisplay *display, maybe_leave_show_desktop_mode (window); meta_window_queue_calc_showing (window); + /* See bug 303284; a transient of the given window can already exist, in which + * case we think it should probably be shown. + */ + meta_window_foreach_transient (window, + queue_calc_showing_func, + NULL); meta_error_trap_pop (display, FALSE); /* pop the XSync()-reducing trap */ meta_display_ungrab (display); |