present: Leave vblank on window list until flip complete
authorKeith Packard <keithp@keithp.com>
Tue, 26 Nov 2013 07:10:17 +0000 (23:10 -0800)
committerKeith Packard <keithp@keithp.com>
Thu, 5 Dec 2013 17:48:36 +0000 (09:48 -0800)
commit04e138846e128670d409798aa2e797c3c5503a47
treec8d336973436ed5d75ac3590a2bb36b9cc23aa67
parentb121d62accb8c346b4e1b1bce99586e13712f04a
present: Leave vblank on window list until flip complete

If the window is destroyed, then we've got cleanup work to do, even if
the vblank has already been executed -- we need to clear the window
pointer so that we don't try to deliver events to it.

Leaving it on the window list meant that when walking that list, we
need to know whether the vblank is waiting to be executed or waiting
for the flip to complete, so a new 'queued' flag was added to the
vblank to distinguish between the two states.

Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
present/present.c
present/present_priv.h