Skip to content

Commit

Permalink
Try fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tkreuzer committed Dec 13, 2024
1 parent 6d2ab1e commit f3e1fb0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion win32ss/user/ntuser/winpos.c
Original file line number Diff line number Diff line change
Expand Up @@ -2257,9 +2257,10 @@ co_WinPosSetWindowPos(
if (!(Window->state & WNDS_BEINGACTIVATED)) // Inside SAW?
{
// Set state flag to prevent recursions.
BOOL WasBeingActivated = (Window->state & WNDS_BEINGACTIVATED) != 0;
Window->state |= WNDS_BEINGACTIVATED;
co_IntSetForegroundWindow(Window); // Fixes SW_HIDE issues. Wine win test_SetActiveWindow & test_SetForegroundWindow.
Window->state &= ~WNDS_BEINGACTIVATED;
if (!WasBeingActivated) Window->state &= ~WNDS_BEINGACTIVATED;
}
}
}
Expand Down

0 comments on commit f3e1fb0

Please sign in to comment.