also set the current size. Lame hack of the day.

2001-08-18  Havoc Pennington  <hp@pobox.com>

	* 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
This commit is contained in:
Havoc Pennington 2001-08-19 01:58:00 +00:00 committed by Havoc Pennington
parent 246ac5e578
commit 60f531af35
3 changed files with 17 additions and 5 deletions

View File

@ -1,11 +1,13 @@
2001-08-18 Havoc Pennington <hp@pobox.com> 2001-08-18 Havoc Pennington <hp@pobox.com>
* 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 * src/effects.c (effects_draw_box_animation_timeout): use the
delay exposes feature to avoid the scren dirt delay exposes feature to avoid the scren dirt
* src/ui.c (meta_image_window_set_position): use gtk_window_move() * src/ui.c
to set the position (meta_ui_push_delay_exposes):
(meta_ui_push_delay_exposes):
(meta_ui_pop_delay_exposes): feature to let us delay redraws until (meta_ui_pop_delay_exposes): feature to let us delay redraws until
after we do server-grabbed draw-on-inferiors effects after we do server-grabbed draw-on-inferiors effects

View File

@ -166,7 +166,7 @@ effects_draw_box_animation_timeout (BoxAnimationContext *context)
* system beefiness or someting, or have some global * system beefiness or someting, or have some global
* "my system is slow" config option. * "my system is slow" config option.
*/ */
static gboolean use_opaque_animations = FALSE; static gboolean use_opaque_animations = TRUE;
void void
meta_effects_draw_box_animation (MetaScreen *screen, meta_effects_draw_box_animation (MetaScreen *screen,

View File

@ -285,7 +285,17 @@ meta_image_window_set_position (MetaImageWindow *iw,
int x, int x,
int y) 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* GdkPixbuf*