win32: Use WM_NCDESTROY instead of WM_DESTROY

WM_NCDESTROY gets called after children are destroyed, which is
the semantics DestroyNotify has in X11.
This commit is contained in:
Alexander Larsson
2011-10-26 11:41:35 +02:00
parent 4690aa28d0
commit 820721500b

View File

@ -3118,7 +3118,7 @@ gdk_event_translate (MSG *msg,
return_val = TRUE;
break;
case WM_DESTROY:
case WM_NCDESTROY:
if (pointer_grab != NULL)
{
if (pointer_grab->window == window)