Commit f3eebcfa authored by Alexandre Julliard's avatar Alexandre Julliard

winex11: Don't send WM_CANCELMODE to iconified windows.

parent 2784c1ca
...@@ -5572,7 +5572,7 @@ static void test_messages(void) ...@@ -5572,7 +5572,7 @@ static void test_messages(void)
ShowWindow(hwnd, SW_MINIMIZE); ShowWindow(hwnd, SW_MINIMIZE);
flush_events(); flush_events();
ok_sequence(WmShowMinOverlappedSeq, "ShowWindow(SW_SHOWMINIMIZED):overlapped", TRUE); ok_sequence(WmShowMinOverlappedSeq, "ShowWindow(SW_SHOWMINIMIZED):overlapped", FALSE);
flush_sequence(); flush_sequence();
if (GetWindowLongW( hwnd, GWL_STYLE ) & WS_MINIMIZE) if (GetWindowLongW( hwnd, GWL_STYLE ) & WS_MINIMIZE)
......
...@@ -837,7 +837,8 @@ static void focus_out( Display *display , HWND hwnd ) ...@@ -837,7 +837,8 @@ static void focus_out( Display *display , HWND hwnd )
return; return;
} }
if (hwnd != NtUserGetForegroundWindow()) return; if (hwnd != NtUserGetForegroundWindow()) return;
send_message( hwnd, WM_CANCELMODE, 0, 0 ); if (!(NtUserGetWindowLongW( hwnd, GWL_STYLE ) & WS_MINIMIZE))
send_message( hwnd, WM_CANCELMODE, 0, 0 );
/* don't reset the foreground window, if the window which is /* don't reset the foreground window, if the window which is
getting the focus is a Wine window */ getting the focus is a Wine window */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment