Bug 482999

Summary: Window doesn't get focus when opening files in an already running app
Product: [Plasma] kwin Reporter: Matija <mata987>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: nate, ronan.jouchet
Priority: NOR Keywords: qt6
Version: 6.0.0   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:

Description Matija 2024-03-09 15:55:29 UTC
STEPS TO REPRODUCE
1. Set Sublime Text as default editor
2. Open a file that has it as an assigned default app (eg, text file)
3. First file opens Sublime and focuses it
4. Second file does open in it, but doesn't bring it to the top and focuses on it, but instead it loads in the background with the Sublime mini icon bouncing near mouse cursor like it's loading

OBSERVED RESULT
The window of the app doesn't get focused with the activated file

EXPECTED RESULT
The window should get into focus with the activated file show in it

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Neon Wayland
KDE Plasma Version:6.0.0 
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
Similar to https://www.reddit.com/r/gnome/comments/18kvlb7/wayland_opening_file_in_alreadyrunning_app_fails/?rdt=55071

Something similar to this, but with SublimeText
Comment 1 Nate Graham 2024-03-11 22:50:06 UTC
This is an issue in Sublime itself, which apparently lacks proper support for the xdg_activation_v1 Wayland protocol.