http://bugs.winehq.org/show_bug.cgi?id=58732
Bug ID: 58732 Summary: Bel Atout: when opening a file linked with a file type, Bel Atout is not brought to top Product: Wine Version: 10.0 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: minor Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: vincent.brevart3526@outlook.fr Distribution: ---
Created attachment 79348 --> http://bugs.winehq.org/attachment.cgi?id=79348 A .bel file that can be opened by Bel Atout from the file explorer
In Bel Atout (card game), .bel files can be opened by a double click from the file explorer. On Ubuntu 22.04, with Wine 10.0, if Bel Atout is not yet running, opening a .bel file works fine, with Bel Atout brought to top. Now, if Bel Atout is already running, a file can be opened in the same window, without opening a new instance. It works fine on Ubuntu. But if I click on the Bel Atout window, just once, anywhere, even if it has no action, the next time I open a file by a double click, the file explorer window will be brought to top, above the Bel Atout window. This doesn't happen on Windows.
As I am the programmer of Bel Atout, I tried many Windows functions like SetForegroundWindow, BringWindowToTop, SetWindowPos, SetActiveWindow, ShowWindow and so on. But no way to avoid the file explorer window to be brought to top.
You can download Bel Atout (free card game) from the page: https://vincent-brevart.fr/en/lin/card-games-for-linux.html
I am attaching a .bel file that you can open from the file explorer.
Not very annoying, but if the .bel file is a "prepared game" with a dialog box that opens before playing the deal, the file explorer windows appears twice: the first time when the file is opened, and a second time when clicking the "Play the prepared game" button and closing the dialog box. I don't understand why. You can test the opening of the prepared games on my page: https://vincent-brevart.fr/en/pre/belote/prepared-games-belote-beginner1.htm...
But it may be a problem coming from my own way of programming, sorry if it does.
Thanks for your great work. Vincent