Commit f49ff1ce authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Vitaly Lipatov

winex11.drv: When mapping a layered window make sure that surface has a valid…

winex11.drv: When mapping a layered window make sure that surface has a valid bounding rectangle. (eterbug #15188). Otherwise surface->flush() would be a no-op. Signed-off-by: 's avatarDmitry Timoshkov <dmitry@baikal.ru> Signed-off-by: 's avatarPavel Beketov <mais@etersoft.ru>
parent 8cb06405
...@@ -1163,7 +1163,10 @@ static void map_window( HWND hwnd, DWORD new_style ) ...@@ -1163,7 +1163,10 @@ static void map_window( HWND hwnd, DWORD new_style )
XMapWindow( data->display, data->whole_window ); XMapWindow( data->display, data->whole_window );
XFlush( data->display ); XFlush( data->display );
if (data->surface && data->vis.visualid != default_visual.visualid) if (data->surface && data->vis.visualid != default_visual.visualid)
{
add_bounds_rect( data->surface->funcs->get_bounds( data->surface ), &data->window_rect );
data->surface->funcs->flush( data->surface ); data->surface->funcs->flush( data->surface );
}
} }
else set_xembed_flags( data, XEMBED_MAPPED ); else set_xembed_flags( data, XEMBED_MAPPED );
......
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