RĂ©mi Bernon rbernon@codeweavers.com wrote:
- if (XFindContext( display, event->xany.window, winContext, (char **)&hwnd ) != 0)
hwnd = 0; /* not for a registered window */
- if (event->type == GenericEvent || XFindContext( display, event->xany.window, winContext, (char **)&hwnd ))
hwnd = NULL; /* not for a registered window */
Changing 0 to NULL looks gratuitous.