[Git][wine/wine][master] 2 commits: server: Track foreground process id, instead of looking for active window.

"Alexandre Julliard (@julliard) via Wine-commits" <[email protected]> Wed, 14 Jan 2026 15:20:04 -0600
Newsgroups gmane.comp.emulators.wine.cvs
Message-ID <[email protected]>

Alexandre Julliard pushed to branch master at wine / wine


Commits:
de6af738 by Rémi Bernon at 2026-01-14T17:04:41+01:00
server: Track foreground process id, instead of looking for active window.

When foreground input is changed and given to a different process (for
instance the desktop process), that process active window is not set
until it handles its internal messages.

This might cause a race condition between the new activated process and
the original process trying to steal foreground back. We might allow it
to get foreground back if we don't find any active window at the time of
the set_foreground_window call.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=58167

- - - - -
9043d697 by Rémi Bernon at 2026-01-14T17:04:41+01:00
server: Remove now unnecessary process-wide set_foreground flag.

We allow windows to be each activated at least once after their creation
and this is now mostly unnecessary. It also effectively allows processes
to activate their first window twice, once because the window was never
active before, and a second time because we only set the process-wide
flag after checking the window flag, which is not the intended effect.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=58167

- - - - -


5 changed files:

- server/process.c
- server/process.h
- server/queue.c
- server/user.h
- server/winstation.c


View it on GitLab: https://gitlab.winehq.org/wine/wine/-/compare/1633d3b502292aad76ac1ded67185de7d92aa2db...9043d6979b78763f82cf299db2399ebcfc7b495e

-- 
View it on GitLab: https://gitlab.winehq.org/wine/wine/-/compare/1633d3b502292aad76ac1ded67185de7d92aa2db...9043d6979b78763f82cf299db2399ebcfc7b495e
You're receiving this email because of your account on gitlab.winehq.org.