From bf7316a4539afdf7a742d2b2ccbbaa5f27918255 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 3 Nov 2016 10:38:19 +0000 Subject: [PATCH] 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 --- src/sna/sna_dri2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;