Bug 494415 - Authentication window should be marked as transient with a parent window
Summary: Authentication window should be marked as transient with a parent window
Status: CONFIRMED
Alias: None
Product: policykit-kde-agent-1
Classification: Plasma
Component: general (show other bugs)
Version: 6.2.0
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2024-10-10 12:17 UTC by Miguel Rozsas
Modified: 2024-10-10 20:26 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Miguel Rozsas 2024-10-10 12:17:56 UTC
SUMMARY
The authentication window (the one that is displayed when you click on hibernate that asks for the root password) is a regular window. If I move the mouse it loses the focus and the other window that now has the focus bring forward and the authentication window get  hidden by the window in foreground.
To make things worse:
1. The authentication window is not listed in task switcher area
2. Clicking again in Hibernate does not bring it to foreground

I believe it should remain on top off any other window and not lose the focus.

STEPS TO REPRODUCE
1. Open any window on the center of screen
2. Click on Hibernate to get the authentication window
3. Move the focus to the other window

OBSERVED RESULT
When you move the focus to another window, the authentication window goes to back of other window, as expected for a regular window, but in this case, it should not.
At least, make the task manager to show the icon so I can click on the icon and bring it back to foreground.
At least, bring it to foreground, if I click again on hibernate.
It is very confusing have a "lost" window on workspace.

EXPECTED RESULT
The authentication window should not lose the focus and it must remain on top of others.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20241007
KDE Plasma Version: 6.2.0
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.3
Kernel Version: 6.11.2-1-default (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 7600X 6-Core Processor
Memory: 30.6 GiB of RAM
Graphics Processor: AMD Radeon RX 6600
Comment 1 Nate Graham 2024-10-10 20:26:00 UTC
If it was system-modal, it would annoy the heck out of people. The GNOME auth dialog being system-modal is a frequently complained-about issue.

We can make it app-model though — and in fact, it's already supposed to be. It seems the problem here is that it's not. Perhaps the window isn't marked as having a transient parent correctly.

The window does appear in thew Task Manager for me, though. …Which is exactly what I would expect for a window not marked as being transient with a parent window. If it was transient with a parent window, it would be correctly app-model and not have an entry in the Task Manager.

It seems that the original trigger of your issue is using focus-follows-mouse. Windows unexpectedly losing focus is a lot harder when using the default settings.