From 60f531af3524136c33813a41c01df3d5bdac9553 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Sun, 19 Aug 2001 01:58:00 +0000 Subject: [PATCH] also set the current size. Lame hack of the day. 2001-08-18 Havoc Pennington * src/ui.c (meta_image_window_set_position): also set the current size. Lame hack of the day. * src/effects.c (effects_draw_box_animation_timeout): use the delay exposes feature to avoid the scren dirt * src/ui.c (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 --- ChangeLog | 8 +++++--- src/effects.c | 2 +- src/ui.c | 12 +++++++++++- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index cd81923f1..94bc75a03 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,11 +1,13 @@ 2001-08-18 Havoc Pennington + * src/ui.c (meta_image_window_set_position): also set the current + size. Lame hack of the day. + * 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): + * src/ui.c + (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 diff --git a/src/effects.c b/src/effects.c index f9eb254cd..f9feaeea9 100644 --- a/src/effects.c +++ b/src/effects.c @@ -166,7 +166,7 @@ effects_draw_box_animation_timeout (BoxAnimationContext *context) * system beefiness or someting, or have some global * "my system is slow" config option. */ -static gboolean use_opaque_animations = FALSE; +static gboolean use_opaque_animations = TRUE; void meta_effects_draw_box_animation (MetaScreen *screen, diff --git a/src/ui.c b/src/ui.c index a32313db3..de1d8ef5c 100644 --- a/src/ui.c +++ b/src/ui.c @@ -285,7 +285,17 @@ meta_image_window_set_position (MetaImageWindow *iw, int x, int y) { - gtk_window_move (iw->window, x, y); + /* We want to do move/resize at the same time to avoid ugliness. + * Lame hack. + */ + GtkRequisition req; + + g_return_if_fail (GTK_WIDGET_REALIZED (iw->window)); + + gtk_widget_size_request (iw->window, &req); + + gdk_window_move_resize (GTK_WIDGET (iw->window)->window, + x, y, req.width, req.height); } GdkPixbuf*