diff options
author | Alberts Muktupāvels <[email protected]> | 2015-09-23 17:15:25 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2015-10-26 10:55:03 +0300 |
commit | 11e421ee416870992414c21c02a836f30e00d838 (patch) | |
tree | e09fb6fe9ffff89b1a6abc8c0a9f76bfcddd1ae7 /src | |
parent | e3ff9c41192776810a7870b4e56edb59ce0f1f6f (diff) | |
download | marco-11e421ee416870992414c21c02a836f30e00d838.tar.bz2 marco-11e421ee416870992414c21c02a836f30e00d838.tar.xz |
effects: remove hack that made Marco crash in certain situations
fixes https://github.com/mate-desktop/marco/issues/200
ported to Marco from https://github.com/GNOME/metacity/commit/f25b7760b7430b674afdb4de1e2072cd99ea3fbc
Diffstat (limited to 'src')
-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 469184e2..163ec054 100644 --- a/src/core/effects.c +++ b/src/core/effects.c @@ -316,23 +316,6 @@ update_wireframe_window (MetaDisplay *display, } #endif -/** - * 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) { @@ -383,8 +366,6 @@ effects_draw_box_animation_timeout (BoxAnimationContext *context) context->gc); #endif /* !HAVE_SHAPE */ - graphics_sync (context); - context->finished(context->finished_data); g_free (context); @@ -425,7 +406,7 @@ effects_draw_box_animation_timeout (BoxAnimationContext *context) #endif /* !HAVE_SHAPE */ /* kick changes onto the server */ - graphics_sync (context); + XFlush (context->screen->display->xdisplay); return TRUE; } |