Workaround X11 BadWindow error if no parent window is found.

This commit is contained in:
Dominik Strasser 2001-10-12 18:41:50 +00:00 committed by Alexandre Julliard
parent 3b3025b6f8
commit 9d777f90c6

View File

@ -1060,9 +1060,14 @@ BOOL X11DRV_GetClipboardData(UINT wFormat)
if (!selectionAcquired)
{
XEvent xe;
XEvent xe;
Atom propRequest;
Window w = X11DRV_get_whole_window( GetAncestor( hWnd, GA_ROOT ));
Window w = X11DRV_get_whole_window( GetAncestor( hWnd, GA_ROOT ));
if(!w)
{
FIXME("No parent win found %x %x\n", hWnd, hWndClipWindow);
return FALSE;
}
/* Map the format ID requested to an X selection property.
* If the format is in the cache, use the atom associated