summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-01-29 23:51:44 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-01-29 23:51:44 +0000
commit2560c0b6577a6380ef175cf18bb804913784632c (patch)
tree70b478f9a642f1e8a196228c9daac60dd0444d07
parent91834fbdee40f46e18d071fd2671a7a642e6aa86 (diff)
xlib/shm: More clarification of seqno required
Everytime I read the predicate wrong, but hopefully, this time I have it right! Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/cairo-xlib-surface-shm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cairo-xlib-surface-shm.c b/src/cairo-xlib-surface-shm.c
index 8ac765e6..fa7d3eb9 100644
--- a/src/cairo-xlib-surface-shm.c
+++ b/src/cairo-xlib-surface-shm.c
@@ -436,7 +436,7 @@ static void send_event(cairo_xlib_display_t *display,
{
XShmCompletionEvent ev;
- if (seqno_before (seqno, display->shm->last_event))
+ if (! seqno_after (seqno, display->shm->last_event))
return;
ev.type = display->shm->event;
@@ -483,7 +483,7 @@ _cairo_xlib_shm_info_cleanup (cairo_xlib_display_t *display)
info = PQ_TOP(pq);
do {
- if (seqno_after (info->last_request, processed)) {
+ if (! seqno_passed (info->last_request, processed)) {
send_event (display, info, display->shm->last_request);
return;
}
@@ -556,7 +556,7 @@ _cairo_xlib_shm_pool_cleanup (cairo_xlib_display_t *display)
cairo_list_foreach_entry_safe (pool, next, cairo_xlib_shm_t,
&display->shm->pool, link) {
- if (seqno_before (pool->attached, processed))
+ if (! seqno_passed (pool->attached, processed))
break;
if (pool->mem.free_bytes == pool->mem.max_bytes)