c823c3d9
by Rémi Bernon at 2025-12-03T20:54:00+01:00
server: Always allow windows to activate after their creation.
When a process closes all of its window then opens a new one, Windows
often allows it to get its "foreground process" status back, as long as
it didn't actively give foreground to another process.
On Wine the activate_other_window logic, or the host window manager,
might have given focus to a different, non-parent, process already and
we are preventing the old process from activating any window again.
This relaxes the restriction a bit more, and allows new windows to be
activated once after their creation, regardless of whether their owner
is the foreground process or not.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=59075