Commit 6afecf22 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

winex11.drv: Don't assume that owner is top-level window in set_style_hints.

parent a04c393a
......@@ -748,10 +748,16 @@ static void set_style_hints( struct x11drv_win_data *data, DWORD style, DWORD ex
{
Window group_leader = data->whole_window;
HWND owner = GetWindow( data->hwnd, GW_OWNER );
Window owner_win = X11DRV_get_whole_window( owner );
Window owner_win = 0;
XWMHints *wm_hints;
Atom window_type;
if (owner)
{
owner = GetAncestor( owner, GA_ROOT );
owner_win = X11DRV_get_whole_window( owner );
}
if (owner_win)
{
XSetTransientForHint( data->display, data->whole_window, owner_win );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment