summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-11-03 10:38:19 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2016-11-03 10:39:56 +0000
commitbf7316a4539afdf7a742d2b2ccbbaa5f27918255 (patch)
tree5c522e95c877196cbd3916197bbb6b9fc8d9f00e
parent40e3be34367141c952678f456f0e0d4632b6c266 (diff)
sna/dri2: Don't request a signal following a dead flip completion
If we do flip to restore the bo after the current Window is destroyed, we should not request that we send an event back to the client. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_dri2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_dri2.c b/src/sna/sna_dri2.c
index 22a6f6ce..697a7290 100644
--- a/src/sna/sna_dri2.c
+++ b/src/sna/sna_dri2.c
@@ -2846,7 +2846,7 @@ sna_dri2_flip_continue(struct sna_dri2_event *info)
info->flip_continue = 0;
assert(!info->signal);
- info->signal = info->type == FLIP_THROTTLE;
+ info->signal = info->type == FLIP_THROTTLE && info->draw;
if (info->sna->mode.front_active == 0)
return false;