http://bugs.winehq.org/show_bug.cgi?id=58436
Bug ID: 58436 Summary: x11, kotor keeps minimizing Product: Wine Version: 10.5 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: zlice@crtdrift.us Distribution: ---
Created attachment 78874 --> http://bugs.winehq.org/attachment.cgi?id=78874 kotor-focus-minimize-patch
https://gitlab.winehq.org/wine/wine/-/commit/f1cdb6ad7fe81563979fcb1cea4d5a5...
i see remi just pushed changes a few hours ago that may be related or affect this, but those did not helps https://gitlab.winehq.org/wine/wine/-/commit/0624408ffa1d066e8ad3d7d2e7ac127...
- run star wars kotor (knights of the old republic) - press escape a few times on the intro screens - game turns to a black screen and then minimizes every time it's focused
http://bugs.winehq.org/show_bug.cgi?id=58436
zlice zlice@crtdrift.us changed:
What |Removed |Added ---------------------------------------------------------------------------- Regression SHA1| |f1cdb6ad7fe81563979fcb1cea4 | |d5a50abea7df2
--- Comment #1 from zlice zlice@crtdrift.us --- does not happen in jwm or openbox, only fluxbox =/
http://bugs.winehq.org/show_bug.cgi?id=58436
--- Comment #2 from zlice zlice@crtdrift.us --- after some more testing, this seems to be working WITHOUT the fix from https://bugs.winehq.org/show_bug.cgi?id=58223 and WITHOUT the lines from this change (attached patch)
so it's likely to do with the hack for mutter. will have to look into it more later
http://bugs.winehq.org/show_bug.cgi?id=58436
Rémi Bernon rbernon@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |rbernon@codeweavers.com
--- Comment #3 from Rémi Bernon rbernon@codeweavers.com --- With Mutter you will need to disable the window decorations (in winecfg, uncheck "let the window manager decorate the windows"), it's completely broken other wise and that's a Mutter bug. There's a merge request to fix it there https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4471
http://bugs.winehq.org/show_bug.cgi?id=58436
--- Comment #4 from zlice zlice@crtdrift.us --- fwiw, turning off window decor does not change anything in fluxbox with 10.10
kotor still keeps minimizing, spec ops does come up if the state is set to withdraw on unmapnotify per linked issue
http://bugs.winehq.org/show_bug.cgi?id=58436
--- Comment #5 from Rémi Bernon rbernon@codeweavers.com --- Could you please attach a log with WINEDEBUG=+x11drv,+event,+win,+pid,+loaddll environment variable?
http://bugs.winehq.org/show_bug.cgi?id=58436
--- Comment #6 from zlice zlice@crtdrift.us --- Created attachment 78879 --> http://bugs.winehq.org/attachment.cgi?id=78879 kotor-winedebug
http://bugs.winehq.org/show_bug.cgi?id=58436
zlice zlice@crtdrift.us changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED
--- Comment #7 from zlice zlice@crtdrift.us --- think i fixed it :)
https://github.com/fluxbox/fluxbox/blob/master/src/Window.cc#L2114
when wine request NET_ACTIVE_WINDOW it ends up calling focusRequestClient() which checks if something is fullscreen and f's off, this causes the window to not focus, so it then gets minimized. not sure why that check was ever there? i guess to prevent focusing something that's already focused, but other code should handle that case anyway?
removed the focus check and kotor seems to run fine. spec ops still needs the withdrawstate that zhiyi made.
will close as resolved. i doubt fluxbox will change it but if someone wants to make a pr go ahead, im just adding this to my fork of it
http://bugs.winehq.org/show_bug.cgi?id=58436
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #8 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 10.12.