Bug 426882 - Overwrite dialog always appears under the topmost window
Summary: Overwrite dialog always appears under the topmost window
Status: REPORTED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: Overwrite dialog (show other bugs)
Version: 5.73.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-22 19:04 UTC by cantabile
Modified: 2020-12-02 12:25 UTC (History)
4 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 cantabile 2020-09-22 19:04:26 UTC
SUMMARY
When I resend a file from my Android phone to my laptop via Bluetooth, the overwrite dialog appears, but it's always under whatever the topmost window happens to be at the time. For example, I often have Firefox, Chromium, and Konsole running. Whichever of them is at the top, the overwrite dialog will appear under that.


STEPS TO REPRODUCE
1. Set the Bluetooth thing to automatically accept files from trusted devices.
2. Pick a folder to save the files received over Bluetooth.
3. Mark your phone as a trusted device.
4. Send a file from your phone, then send the same file again.


OBSERVED RESULT
The "Receiving file over Bluetooth" notification appears. Then the overwrite dialog pops up, but it's under whatever was the topmost window. However, the overwrite dialog does have keyboard focus. Its taskbar entry is highlighted.


EXPECTED RESULT
The overwrite dialog should appear above every other window I have open at the time.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma:
(available in About System)
KDE Plasma Version: 5.19.5
KDE Frameworks Version: 5.73.0
Qt Version: 5.15.1
Bluedevil Version: 5.19.5


ADDITIONAL INFORMATION
I tried to reproduce this with a simple Pyqt app that just pops up a QDialog, but that worked correctly. I didn't see anything weird in the RenameDialog class or the askFileRename function.

I would have preferred to send a patch instead of a bug report, but KDE is complicated.
Comment 1 Ahmad Samir 2020-12-02 12:25:02 UTC
kwin devs, issue on the KWin/window-manager side?

It doesn't look like focus stealing prevention since the dialog appears behind a window but has keyboard focus...