Bug 413962

Summary: Some Dolphin dialogues aren't floating windows in Sway window manager
Product: [Frameworks and Libraries] frameworks-kio Reporter: pmargeti34
Component: generalAssignee: David Faure <faure>
Status: REPORTED ---    
Severity: normal CC: elvis.angelaccio, kdelibs-bugs, kfm-devel
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Copy progress is displayed as a tiled window (undesired)
Copy progress is displayed as a floating window (desireable)

Description pmargeti34 2019-11-08 23:35:06 UTC
Created attachment 123802 [details]
Copy progress is displayed as a tiled window (undesired)

If dolphin is running under Sway window manager and QT_QPA_PLATFORM=wayland, some of dolphin's dialogue windows don't provide hints that allows Sway to treat them as floating windows.

Some of these dialogues are Copying/Moving/File|Folder Already Exists/Information/Extracting...

STEPS TO REPRODUCE
1. export QT_QPA_PLATFORM=wayland
2. run sway
3. run dolphin and try copying some files

OBSERVED RESULT
Copying progress window is displayed as a tiled window

EXPECTED RESULT
Copying progress window is displayed as a floating window

ADDITIONAL INFORMATION
Attaching screenshots of what it looks like/what it should look like
Comment 1 pmargeti34 2019-11-08 23:35:58 UTC
Created attachment 123803 [details]
Copy progress is displayed as a floating window (desireable)
Comment 2 pmargeti34 2019-11-08 23:38:26 UTC
Additional note:
I'm currently using the following rules in Sway to work around this:
    for_window [title="^(File|Folder)\s*Already Exists\s*—\s*" app_id="dolphin|org.kde.ark"] floating enable
    for_window [title="^(Copying|Moving)\s*—\s*Dolphin" app_id="dolphin"] floating enable
    for_window [title="^Extracting\s" app_id="(dolphin|org.kde.ark)"] floating enable
    for_window [title="^Information\s*—\s*Dolphin" app_id="dolphin"] floating enable
    for_window [title="^Loading archive" app_id="org.kde.ark"] floating enable

This has undesired consequences if say a folder is called Copying - it makes the dolphin main window float if such a folder is entered, which is not acceptable.
Comment 3 Elvis Angelaccio 2019-11-09 14:34:57 UTC
Moving to KIO which is the library that provides those windows.
Comment 4 pmargeti34 2019-11-09 16:32:54 UTC
Thank you Elvis. It's probably worth noting that Ark does the same thing with it's extract windows and I'm guessing that it too uses KIO for this functionality.