summaryrefslogtreecommitdiff
path: root/src/effects.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2001-08-19 01:19:54 +0000
committerHavoc Pennington <hp@src.gnome.org>2001-08-19 01:19:54 +0000
commit246ac5e578323795b539bd51e38673a0ba6642b6 (patch)
tree0cab26d0dd86d6f76be45ba1065527e45d0bf779 /src/effects.c
parent505282697a9b073c8fa0f0108c905df65489789c (diff)
downloadmetacity-246ac5e578323795b539bd51e38673a0ba6642b6.tar.gz
metacity-246ac5e578323795b539bd51e38673a0ba6642b6.tar.bz2
use the delay exposes feature to avoid the scren dirt
2001-08-18 Havoc Pennington <hp@pobox.com> * src/effects.c (effects_draw_box_animation_timeout): use the delay exposes feature to avoid the scren dirt * src/ui.c (meta_image_window_set_position): use gtk_window_move() to set the position (meta_ui_push_delay_exposes): (meta_ui_pop_delay_exposes): feature to let us delay redraws until after we do server-grabbed draw-on-inferiors effects
Diffstat (limited to 'src/effects.c')
-rw-r--r--src/effects.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/effects.c b/src/effects.c
index 91cc59e..f9eb254 100644
--- a/src/effects.c
+++ b/src/effects.c
@@ -100,6 +100,7 @@ effects_draw_box_animation_timeout (BoxAnimationContext *context)
else
{
meta_display_ungrab (context->screen->display);
+ meta_ui_pop_delay_exposes (context->screen->ui);
XFreeGC (context->screen->display->xdisplay,
context->gc);
}
@@ -235,6 +236,7 @@ meta_effects_draw_box_animation (MetaScreen *screen,
/* Grab the X server to avoid screen dirt */
meta_display_grab (context->screen->display);
+ meta_ui_push_delay_exposes (context->screen->ui);
}
/* Do this only after we get the pixbuf from the server,