xserver-multidpi/hw
Jon TURNEY bea6fb6c7a hw/xwin: Avoid WIN_WINDOW_PROP races during Windows window destruction
The WIN_WINDOW_PROP is removed during WM_DESTROY handling, so it is not neccessary to
remove it in winDestroyWindowsWindow(), and doing so opens a race condition, as we may
attempt to access that property in the wndproc before the WM_DESTROY has completed.

A specific example of that race is if a WM_KILLFOCUS occurs in the window between property
removal and WM_DESTROY processing, where we will attempt to apply DeleteWindowFromAnyEvents()
on an invalid (null) WindowPtr.

Also guard against null WindowPtr in the WM_KILLFOCUS handler

See http://cygwin.com/ml/cygwin-xfree/2012-01/msg00009.html

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
2012-01-26 14:40:31 +00:00
..
dmx dmx: force -fno-strict-aliasing for xinput example 2011-12-19 22:27:17 -08:00
kdrive Revert "dix: Pull client-is-local flag up to the ClientRec" 2012-01-12 12:09:59 -08:00
vfb Move to autoconf standard function name checks & defines 2011-12-05 14:32:45 -08:00
xfree86 int10: Fix unmapping of the BIOS scratch area 2012-01-25 09:26:23 -08:00
xnest Fix builds of Xnest & Xephyr with Solaris Studio compilers 2011-12-05 14:33:00 -08:00
xquartz Revert "dix: Pull client-is-local flag up to the ClientRec" 2012-01-12 12:09:59 -08:00
xwin hw/xwin: Avoid WIN_WINDOW_PROP races during Windows window destruction 2012-01-26 14:40:31 +00:00
Makefile.am Catch errors in recursive relink targets 2010-03-22 00:45:57 -05:00