Bug 482999 - Window doesn't get focus when opening files in an already running app
Summary: Window doesn't get focus when opening files in an already running app
Status: RESOLVED DOWNSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 6.0.0
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-03-09 15:55 UTC by Matija
Modified: 2024-03-13 08:38 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

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