Commit 8d77c375 authored by Alexandre Julliard's avatar Alexandre Julliard

winex11: Send WM_SYSCOMMAND instead of calling ShowWindow directly to minimize/restore a window.

parent 31b4061c
......@@ -885,13 +885,13 @@ static void handle_wm_state_notify( struct x11drv_win_data *data, XPropertyEvent
{
TRACE( "restoring win %p/%lx\n", data->hwnd, data->whole_window );
data->iconic = FALSE;
ShowWindow( data->hwnd, SW_RESTORE );
SendMessageW( data->hwnd, WM_SYSCOMMAND, SC_RESTORE, 0 );
}
else if (!data->iconic && data->wm_state == IconicState)
{
TRACE( "minimizing win %p/%lx\n", data->hwnd, data->whole_window );
data->iconic = TRUE;
ShowWindow( data->hwnd, SW_MINIMIZE );
SendMessageW( data->hwnd, WM_SYSCOMMAND, SC_MINIMIZE, 0 );
}
}
......
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