From 58441052231184f7278adcbffa129f4d9c8ef97b Mon Sep 17 00:00:00 2001 From: Ken Thomases Date: Sat, 22 Sep 2012 15:44:42 -0500 Subject: [PATCH] winex11: Avoid a redundant TRACE. --- dlls/winex11.drv/event.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/dlls/winex11.drv/event.c b/dlls/winex11.drv/event.c index 4e4b816ba46..514f0d47a47 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) { -- 2.11.4.GIT