xserver-multidpi/present
Keith Packard e5a188cb91 present: Signal destroyed flip window with vblank->window == NULL
This eliminates dereferencing freed window pointers when there is a
flip for that window in progress. The flip will complete, and then
immediately get undone (as we can't stop an in-progress flip).

Remove the vblank->window_destroyed field as we can signal this with
vblank->window == NULL instead.

Change check to vblank->window == NULL in:

	present_flip_notify

Add check for vblank->window == NULL in:
	present_vblank_notify
	present_execute

present_flip_notify was also using vblank->window->drawable.pScreen,
so stop doing that and use vblank->screen instead.

Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
2013-11-20 13:12:27 -08:00
..
Makefile.am present: Add Present extension 2013-10-31 16:59:18 -07:00
present_event.c present: Add Present extension 2013-10-31 16:59:18 -07:00
present_fake.c present: Round fake MSC computations intead of truncating 2013-11-20 13:12:22 -08:00
present_fence.c present: Add Present extension 2013-10-31 16:59:18 -07:00
present_notify.c present: Add Present extension 2013-10-31 16:59:18 -07:00
present_priv.h present: Signal destroyed flip window with vblank->window == NULL 2013-11-20 13:12:27 -08:00
present_request.c present: Add Present extension 2013-10-31 16:59:18 -07:00
present_screen.c present: Signal destroyed flip window with vblank->window == NULL 2013-11-20 13:12:27 -08:00
present.c present: Signal destroyed flip window with vblank->window == NULL 2013-11-20 13:12:27 -08:00
present.h present: Add Present extension 2013-10-31 16:59:18 -07:00
presentext.h present: Add Present extension 2013-10-31 16:59:18 -07:00