Henri Verbeet : winex11: Don' t send SC_RESTORE when a maximized window switches to fullscreen.
Alexandre Julliard
julliard at winehq.org
Thu Oct 4 13:38:38 CDT 2012
Module: wine
Branch: master
Commit: 32125fe65ec9f6fe9386ac657c03e73422338dc9
URL: http://source.winehq.org/git/wine.git/?a=commit;h=32125fe65ec9f6fe9386ac657c03e73422338dc9
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Thu Oct 4 13:53:29 2012 +0200
winex11: Don't send SC_RESTORE when a maximized window switches to fullscreen.
---
dlls/winex11.drv/event.c | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/dlls/winex11.drv/event.c b/dlls/winex11.drv/event.c
index 9eedbc5..f908413 100644
--- a/dlls/winex11.drv/event.c
+++ b/dlls/winex11.drv/event.c
@@ -1065,19 +1065,19 @@ void X11DRV_ConfigureNotify( HWND hwnd, XEvent *xev )
data->window_rect.bottom - data->window_rect.top, cx, cy );
style = GetWindowLongW( data->hwnd, GWL_STYLE );
- if ((style & WS_CAPTION) == WS_CAPTION && is_net_wm_state_maximized( event->display, data ))
+ if ((style & WS_CAPTION) == WS_CAPTION)
{
- if (!(style & WS_MAXIMIZE))
+ if (is_net_wm_state_maximized( event->display, data ))
{
- TRACE( "win %p/%lx is maximized\n", data->hwnd, data->whole_window );
- release_win_data( data );
- SendMessageW( data->hwnd, WM_SYSCOMMAND, SC_MAXIMIZE, 0 );
- return;
+ if (!(style & WS_MAXIMIZE))
+ {
+ TRACE( "win %p/%lx is maximized\n", data->hwnd, data->whole_window );
+ release_win_data( data );
+ SendMessageW( data->hwnd, WM_SYSCOMMAND, SC_MAXIMIZE, 0 );
+ return;
+ }
}
- }
- else
- {
- if (style & WS_MAXIMIZE)
+ else if (style & WS_MAXIMIZE)
{
TRACE( "window %p/%lx is no longer maximized\n", data->hwnd, data->whole_window );
release_win_data( data );
More information about the wine-cvs
mailing list