From 8d77c375b27adc490d24d7593769f4e149d4102c Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 31 Jul 2008 12:08:38 +0200 Subject: [PATCH] winex11: Send WM_SYSCOMMAND instead of calling ShowWindow directly to minimize/restore a window. --- dlls/winex11.drv/event.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/winex11.drv/event.c b/dlls/winex11.drv/event.c index d54b5bb0142..62504860d73 100644 --- a/dlls/winex11.drv/event.c +++ b/dlls/winex11.drv/event.c @@ -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 ); } } -- 2.11.4.GIT