[cairo-commit] src/cairo-xlib-surface-shm.c
Chris Wilson
ickle at kemper.freedesktop.org
Sun Dec 23 03:22:58 PST 2012
src/cairo-xlib-surface-shm.c | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 7d02e2d62d1d2d2852f256905af60f418216b9ea
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Sun Dec 23 11:12:21 2012 +0000
xlib/shm: Populate send_event and serial
Hopefully this random choice is more meaningful than random junk.
Bugzilla; https://bugs.freedesktop.org/show_bug.cgi?id=58672
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
diff --git a/src/cairo-xlib-surface-shm.c b/src/cairo-xlib-surface-shm.c
index 684d7e8..8a9e667 100644
--- a/src/cairo-xlib-surface-shm.c
+++ b/src/cairo-xlib-surface-shm.c
@@ -1133,6 +1133,8 @@ _cairo_xlib_shm_surface_mark_active (cairo_surface_t *_shm)
XShmCompletionEvent ev;
ev.type = display->shm->event;
+ ev.send_event = 1; /* XXX or lie? */
+ ev.serial = NextRequest (display->display) - 1;
ev.drawable = display->shm->window;
ev.major_code = display->shm->opcode;
ev.minor_code = X_ShmPutImage;
@@ -1259,6 +1261,8 @@ has_broken_send_shm_event (cairo_xlib_display_t *display,
}
ev.type = shm->event;
+ ev.send_event = 1;
+ ev.serial = 1;
ev.drawable = shm->window;
ev.major_code = shm->opcode;
ev.minor_code = X_ShmPutImage;
More information about the cairo-commit
mailing list