Ken Thomases : winex11: Avoid a redundant TRACE.
Alexandre Julliard
julliard at winehq.org
Mon Sep 24 16:04:27 CDT 2012
Module: wine
Branch: master
Commit: 58441052231184f7278adcbffa129f4d9c8ef97b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=58441052231184f7278adcbffa129f4d9c8ef97b
Author: Ken Thomases <ken at codeweavers.com>
Date: Sat Sep 22 15:44:42 2012 -0500
winex11: Avoid a redundant TRACE.
---
dlls/winex11.drv/event.c | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/dlls/winex11.drv/event.c b/dlls/winex11.drv/event.c
index 4e4b816..514f0d4 100644
--- a/dlls/winex11.drv/event.c
+++ b/dlls/winex11.drv/event.c
@@ -1209,14 +1209,17 @@ static void handle_wm_state_notify( HWND hwnd, XPropertyEvent *event, BOOL updat
}
TRACE( "not restoring to max win %p/%lx style %08x\n", data->hwnd, data->whole_window, style );
}
- else if (style & (WS_MINIMIZE | WS_MAXIMIZE))
+ else
{
- TRACE( "restoring win %p/%lx\n", data->hwnd, data->whole_window );
- release_win_data( data );
- SendMessageW( hwnd, WM_SYSCOMMAND, SC_RESTORE, 0 );
- return;
+ if (style & (WS_MINIMIZE | WS_MAXIMIZE))
+ {
+ TRACE( "restoring win %p/%lx\n", data->hwnd, data->whole_window );
+ release_win_data( data );
+ SendMessageW( hwnd, WM_SYSCOMMAND, SC_RESTORE, 0 );
+ return;
+ }
+ TRACE( "not restoring win %p/%lx style %08x\n", data->hwnd, data->whole_window, style );
}
- TRACE( "not restoring win %p/%lx style %08x\n", data->hwnd, data->whole_window, style );
}
else if (!data->iconic && data->wm_state == IconicState)
{
More information about the wine-cvs
mailing list