From 01388d255409c5c645f88ee08a26338887c402af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alberts=20Muktup=C4=81vels?= Date: Thu, 23 Jul 2015 14:53:16 +0300 Subject: [PATCH] effects: remove hack --- src/core/effects.c | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/src/core/effects.c b/src/core/effects.c index e3c6dcd..bb049b0 100644 --- a/src/core/effects.c +++ b/src/core/effects.c @@ -297,23 +297,6 @@ update_wireframe_window (MetaDisplay *display, } } -/** - * A hack to force the X server to synchronize with the - * graphics hardware. - */ -static void -graphics_sync (BoxAnimationContext *context) -{ - XImage *image; - - image = XGetImage (context->screen->display->xdisplay, - context->screen->xroot, - 0, 0, 1, 1, - AllPlanes, ZPixmap); - - XDestroyImage (image); -} - static gboolean effects_draw_box_animation_timeout (BoxAnimationContext *context) { @@ -342,7 +325,7 @@ effects_draw_box_animation_timeout (BoxAnimationContext *context) XDestroyWindow (context->screen->display->xdisplay, context->wireframe_xwindow); - graphics_sync (context); + XFlush (context->screen->display->xdisplay); g_free (context); return FALSE; @@ -370,7 +353,7 @@ effects_draw_box_animation_timeout (BoxAnimationContext *context) &draw_rect); /* kick changes onto the server */ - graphics_sync (context); + XFlush (context->screen->display->xdisplay); return TRUE; } -- 2.1.4