Alexandre Julliard : winex11: Send WM_SYSCOMMAND instead of calling ShowWindow directly to minimize/ restore a window.
Alexandre Julliard
julliard at winehq.org
Thu Jul 31 07:17:47 CDT 2008
Module: wine
Branch: master
Commit: 8d77c375b27adc490d24d7593769f4e149d4102c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8d77c375b27adc490d24d7593769f4e149d4102c
Author: Alexandre Julliard <julliard at winehq.org>
Date: Thu Jul 31 12:08:38 2008 +0200
winex11: Send WM_SYSCOMMAND instead of calling ShowWindow directly to minimize/restore a window.
---
dlls/winex11.drv/event.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/winex11.drv/event.c b/dlls/winex11.drv/event.c
index d54b5bb..6250486 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 );
}
}
More information about the wine-cvs
mailing list