Get start time after we do the pixbuf from drawable, so we don't count
2001-08-06 Havoc Pennington <hp@pobox.com> * src/effects.c (meta_effects_draw_box_animation): Get start time after we do the pixbuf from drawable, so we don't count time spent getting pixbuf from drawable in the animation time.
This commit is contained in:
parent
11b14d327f
commit
8c7b04edb9
@ -1,3 +1,9 @@
|
|||||||
|
2001-08-06 Havoc Pennington <hp@pobox.com>
|
||||||
|
|
||||||
|
* src/effects.c (meta_effects_draw_box_animation): Get start
|
||||||
|
time after we do the pixbuf from drawable, so we don't count
|
||||||
|
time spent getting pixbuf from drawable in the animation time.
|
||||||
|
|
||||||
2001-08-06 Havoc Pennington <hp@pobox.com>
|
2001-08-06 Havoc Pennington <hp@pobox.com>
|
||||||
|
|
||||||
* src/effects.c: add opaque minimize/shade feature. The wireframe
|
* src/effects.c: add opaque minimize/shade feature. The wireframe
|
||||||
|
@ -186,7 +186,6 @@ meta_effects_draw_box_animation (MetaScreen *screen,
|
|||||||
context->screen = screen;
|
context->screen = screen;
|
||||||
|
|
||||||
context->millisecs_duration = seconds_duration * 1000.0;
|
context->millisecs_duration = seconds_duration * 1000.0;
|
||||||
g_get_current_time (&context->start_time);
|
|
||||||
context->first_time = TRUE;
|
context->first_time = TRUE;
|
||||||
context->start_rect = *initial_rect;
|
context->start_rect = *initial_rect;
|
||||||
context->end_rect = *destination_rect;
|
context->end_rect = *destination_rect;
|
||||||
@ -238,6 +237,11 @@ meta_effects_draw_box_animation (MetaScreen *screen,
|
|||||||
meta_display_grab (context->screen->display);
|
meta_display_grab (context->screen->display);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Do this only after we get the pixbuf from the server,
|
||||||
|
* so that the animation doesn't get truncated.
|
||||||
|
*/
|
||||||
|
g_get_current_time (&context->start_time);
|
||||||
|
|
||||||
/* Add the timeout - a short one, could even use an idle,
|
/* Add the timeout - a short one, could even use an idle,
|
||||||
* but this is maybe more CPU-friendly.
|
* but this is maybe more CPU-friendly.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user