Bug 423527 - on logout, confirmation dialogs from multiple windows only display correctly when they're all on the current virtual desktop
Summary: on logout, confirmation dialogs from multiple windows only display correctly ...
Status: CONFIRMED
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.18.5
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Kai Uwe Broulik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-26 04:11 UTC by glyphimor
Modified: 2025-01-15 23:12 UTC (History)
3 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 glyphimor 2020-06-26 04:11:28 UTC
SUMMARY

When the user tries to log out, if a window raises an exit dialog (e.g. save/discard changes), the user hears a sound and the window raises. This works when there are multiple such dialogs on the current virtual desktop, OR only 1 dialog on a different virtual desktop. However, various issues crop up when there are multiple dialogs and at least 1 is on another desktop.

STEPS TO REPRODUCE
1. On the current virtual desktop, load program window A
2. Configure A so that it will raise a dialog on exit (e.g. KWrite w/ unsaved changes)
3. On a different virtual desktop, load program window B
4. Configure B so that it will raise a dialog on exit
5. Initiate logout

OBSERVED RESULT

All panels, etc. vanish. After ~1 second, a sound plays and a confirmation dialog raises for A. Close the dialog. No 2nd sound plays. After ~10 more seconds, the other virtual desktop appears; the confirmation dialog for B appears to be raised, but not focused. After ~1 more second, logout completes.

EXPECTED RESULT

In sequence, for each confirmation dialog: a sound plays, the virtual desktop changes (if necessary), and the window/dialog is raised/focused.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.70.1
KDE Frameworks Version: 5.70.0
Qt Version: 5.14.2

ADDITIONAL INFORMATION

The exact behavior differs somewhat based on how the dialog-raising windows are distributed across virtual desktops, but the rule appears to be that everything works fine for multiple dialogs on the current virtual desktop. As above, if in addition there's 1 dialog on another virtual desktop, it doesn't get a sound and doesn't appear until just before logout.

If there are no dialogs on the current virtual desktop, but multiple dialogs on a different desktop, a sound plays, but the view stays on the current virtual desktop. 10 seconds later, the view changes to the other virtual desktop, the dialogs are visible but possibly not focused, then logout finishes a second later.