mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 18:25:36 +00:00
windows: Drop WM_ACTIVATE when window is hidden, but only if being activated.
Fixes Bugzilla #4571.
This commit is contained in:
parent
f9a9193e2c
commit
399df540e3
|
@ -428,13 +428,12 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
||||||
POINT cursorPos;
|
POINT cursorPos;
|
||||||
BOOL minimized;
|
BOOL minimized;
|
||||||
|
|
||||||
/* Don't mark the window as shown if it's activated before being shown */
|
|
||||||
if (!IsWindowVisible(hwnd)) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
minimized = HIWORD(wParam);
|
minimized = HIWORD(wParam);
|
||||||
if (!minimized && (LOWORD(wParam) != WA_INACTIVE)) {
|
if (!minimized && (LOWORD(wParam) != WA_INACTIVE)) {
|
||||||
|
/* Don't mark the window as shown if it's activated before being shown */
|
||||||
|
if (!IsWindowVisible(hwnd)) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
if (LOWORD(wParam) == WA_CLICKACTIVE) {
|
if (LOWORD(wParam) == WA_CLICKACTIVE) {
|
||||||
if (GetAsyncKeyState(VK_LBUTTON)) {
|
if (GetAsyncKeyState(VK_LBUTTON)) {
|
||||||
data->focus_click_pending |= SDL_BUTTON_LMASK;
|
data->focus_click_pending |= SDL_BUTTON_LMASK;
|
||||||
|
|
Loading…
Reference in a new issue