Bug 413962 - Some Dolphin dialogues aren't floating windows in Sway window manager
Summary: Some Dolphin dialogues aren't floating windows in Sway window manager
Status: REPORTED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-08 23:35 UTC by pmargeti34
Modified: 2019-11-09 16:32 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Copy progress is displayed as a tiled window (undesired) (113.66 KB, image/png)
2019-11-08 23:35 UTC, pmargeti34
Details
Copy progress is displayed as a floating window (desireable) (113.56 KB, image/png)
2019-11-08 23:35 UTC, pmargeti34
Details

Note You need to log in before you can comment on or make changes to this bug.
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.