mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 22:20:26 +00:00
Workaround X11 BadWindow error if no parent window is found.
This commit is contained in:
parent
3b3025b6f8
commit
9d777f90c6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user