#43943: qt - dlogs can get lost behind map window Open Date: 2022-02-20 05:37 Last Update: 2022-06-26 16:08 URL for this Ticket: https://osdn.net//projects/freeciv/ticket/43943 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=43943 --------------------------------------------------------------------- Last Changes/Comment on this Ticket: 2022-06-26 16:08 Updated by: cazfi Comment: Reply To ddeanbrown Both of the new patches work on my Mac (which has Qt 5.15.2), but it works too well. The help dlog stays on top even when I switch to a different app, like to my web browser. Yikes! By itself, the call to help_dlg->setWindowState(Qt::WindowState::WindowActive); doesn't bring it to the front. According to web searches all this is a rather common problem, where nobody seems to come up with an universal solution - these things work so differently on different platforms. I wonder if we could do such trickery that we set Qt::WindowStaysOnTopHint (which you said to "works too well") when we want the window to come top, and then clear the flag again once we are sure (how?) that the window now is on top. --------------------------------------------------------------------- Ticket Status: Reporter: ddeanbrown Owner: (None) Type: Bugs Status: Open Priority: 5 - Medium MileStone: (None) Component: Qt-client Severity: 5 - Medium Resolution: None --------------------------------------------------------------------- Ticket details: Cloning this ticket from hostedredmine. Seen in 3.0.0 Help, diplomacy dlogs get hidden when you click on the main window (usually the map window F1, but also others like research F6 or Nations F3). Especially bad for the help dlog because you then can never see it again unless you turn off Fullscreen and resize the map window to make it smaller. Those dlogs should be modal or at least always on top. Chippo chiph****@gmail***** says he sees the same bug on Linux/Openbox, but not on Linux/wayland-gnome-something. -- Ticket information of Freeciv project Freeciv Project is hosted on OSDN Project URL: https://osdn.net/projects/freeciv/ OSDN: https://osdn.net URL for this Ticket: https://osdn.net/projects/freeciv/ticket/43943 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=43943