Bug 453315 - Focus stealing not working properly with Dolphin and Sublime Text.
Summary: Focus stealing not working properly with Dolphin and Sublime Text.
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: core (show other bugs)
Version: 5.24.4
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL: https://codereview.qt-project.org/c/q...
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-02 18:38 UTC by jejoxe6725
Modified: 2022-05-04 13:54 UTC (History)
1 user (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 jejoxe6725 2022-05-02 18:38:08 UTC
SUMMARY
Focus stealing not working properly with Dolphin and Sublime Text.

STEPS TO REPRODUCE
1. Go to "Dolphin > Configure > Configure Dolphin > Startup"
2. Enable "Open new folders in tabs"
3. Go to Desktop (i.e. minimize everything using CTRL+D)
4. Create three folders "a", "b", "c"
5. Open "a"
6. Go to Desktop (i.e. minimize everything using CTRL+D)
7. Open "b"
8. Open "c"

OBSERVED RESULT
Dolphin does not come in focus when opening the folders "b" and "c"

EXPECTED RESULT
Dolphin should come in front (i.e. focus) when opening "b" and "c"

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
- Tested with "System Settings > Window Behavior > Focus > Focus stealing prevention" set to "None" and "Low".
- The same thing happens with Sublime Text, if I open a text file when no instance of Sublime Text is running, then Sublime Text launches and comes to the focus. However, if I open a file when an instance of Sublime Text is running, then the file is opened in Sublime Text, but, Sublime Text does not come in focus.
Comment 1 Nate Graham 2022-05-03 16:45:40 UTC
This requires support for the Wayland activation protocol which is only in Qt6; see https://codereview.qt-project.org/c/qt/qtwayland/+/321246.
Comment 2 jejoxe6725 2022-05-04 13:54:36 UTC
Thanks for the response. Have a good day.