diff options
author | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2015-09-23 17:15:25 +0300 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2015-09-23 17:15:25 +0300 |
commit | f25b7760b7430b674afdb4de1e2072cd99ea3fbc (patch) | |
tree | 3abc06f75bab4737e0afffc4a2626ad33604f7b3 | |
parent | e88707b74f0c504fdd9bf582ea79560a30b6a7f7 (diff) | |
download | metacity-f25b7760b7430b674afdb4de1e2072cd99ea3fbc.tar.gz |
effects: remove hack
Remove hack added in 766d46b70d397ed6966d8b1f7fd5bd63ee7f2bcf.
https://bugzilla.gnome.org/show_bug.cgi?id=752775
-rw-r--r-- | src/core/effects.c | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/src/core/effects.c b/src/core/effects.c index ca176d90..2897f479 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,8 +325,6 @@ effects_draw_box_animation_timeout (BoxAnimationContext *context) XDestroyWindow (context->screen->display->xdisplay, context->wireframe_xwindow); - graphics_sync (context); - g_free (context); return FALSE; } @@ -370,7 +351,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; } |