Bug 453315

Summary: Focus stealing not working properly with Dolphin and Sublime Text.
Product: [Plasma] kwin Reporter: jejoxe6725
Component: coreAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: eandmsz, nate
Priority: NOR    
Version First Reported In: 5.24.4   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
URL: https://codereview.qt-project.org/c/qt/qtwayland/+/321246
Latest Commit: Version Fixed In:
Sentry Crash Report:

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.
Comment 3 Andreas 2025-04-29 15:31:20 UTC
I don't think its resolved. I'm having the exact same problem in kubuntu 25.04

KDE Plasma: 6.3.4
KDE Fw: 6.12.0
QT: 6.8.3
Kernel: 6.14.3
Wayland