diff options
author | Søren Sandmann <sandmann@redhat.com> | 2006-05-23 20:38:18 +0000 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@src.gnome.org> | 2006-05-23 20:38:18 +0000 |
commit | 7592470dab8805f65ff6ab820400c13e4c2c5902 (patch) | |
tree | 99246c9e224d0c6fe81846916ecd2feb1780110e /src/compositor.c | |
parent | 179987132c744424f960d378e356e5826560b2c4 (diff) | |
download | metacity-7592470dab8805f65ff6ab820400c13e4c2c5902.tar.gz |
Also use explode when windows close.
Tue May 23 16:36:04 2006 Søren Sandmann <sandmann@redhat.com>
* src/compositor.c (do_effect): Also use explode when windows close.
* src/c-window.c (meta_comp_window_explode): Add refcounting to
comp window, and use it in the explosion effect
* src/effects.h (struct MetaEffect): Add new MetaCloseEffect.
* src/display.c (event_callback): Run it from the UnmapNotify
event handler.
Diffstat (limited to 'src/compositor.c')
-rw-r--r-- | src/compositor.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/compositor.c b/src/compositor.c index 2dd6ad38..aeffb294 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -121,6 +121,20 @@ do_effect (MetaEffect *effect, meta_comp_window_explode (window, effect); break; } + case META_EFFECT_CLOSE: + { + MetaCompScreen *screen = meta_comp_screen_get_by_xwindow ( + get_xid (effect->u.minimize.window)); + MetaCompWindow *window = + meta_comp_screen_lookup_window (screen, effect->u.minimize.window->frame->xwindow); + g_print ("close\n"); + + meta_comp_window_explode (window, effect); +#if 0 + meta_effect_end (effect); +#endif + break; + } default: { g_assert_not_reached(); |