diff options
author | Søren Sandmann <sandmann@redhat.com> | 2006-05-25 02:15:49 +0000 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@src.gnome.org> | 2006-05-25 02:15:49 +0000 |
commit | 6dfb56cc7757a4bedfc092a2ad89de3b71096964 (patch) | |
tree | 707ebc0ca0b0362dd5b5c480b2d6bcc4b52e8d46 /src/compositor.c | |
parent | ab1adf6c06f427fb12f91aecad6735ecd62e6f81 (diff) | |
download | metacity-6dfb56cc7757a4bedfc092a2ad89de3b71096964.tar.gz |
Make sure windows are kept on top of the panel during minimize.
Wed May 24 22:15:01 2006 Søren Sandmann <sandmann@redhat.com>
* src/compositor.c (do_effect): Make sure windows are kept on top
of the panel during minimize.
Diffstat (limited to 'src/compositor.c')
-rw-r--r-- | src/compositor.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/compositor.c b/src/compositor.c index 6f0274c0..46fa983f 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -118,9 +118,20 @@ do_effect (MetaEffect *effect, { MetaCompScreen *screen = meta_comp_screen_get_by_xwindow ( get_xid (effect->u.minimize.window)); - MetaCompWindow *window = + MetaCompWindow *window; + + if (!effect->u.minimize.window->frame) + { + meta_effect_end (effect); + return; + } + + window = meta_comp_screen_lookup_window (screen, effect->u.minimize.window->frame->xwindow); + /* FIXME: a hack to make sure the window starts on top of the panel */ + meta_comp_screen_raise_window (screen, effect->u.minimize.window->frame->xwindow); + meta_comp_window_run_minimize (window, effect); #if 0 meta_comp_window_explode (window, effect); |