Bug 451070

Summary: Starting some application does not bring them to focus, when opening in other Activities
Product: [Plasma] kwin Reporter: wallcarpet40 <tervatv79>
Component: activitiesAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: joelson.ejr, kishore96, nicolas.fella
Priority: NOR    
Version First Reported In: 5.24.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description wallcarpet40 2022-03-03 07:49:46 UTC
SUMMARY
I have set up Activities: www, sys, kodi, game
I have applications set up, so they open up in their own Activities:
- kodi opens in "kodi" activity
- goverlay opens in "game" activity
- steam opens in "game" activity

When starting applications, either via shortcut (for example Ctrl+Alt+4 for kodi), or in Krunner, applications do start in their own activity, but the activity is not switched to automatically.

Applications that DO work and switch to their own activity, are:
-firefox opens in "www" activity and takes focus
-Dolphin opens in "sys" activity and takes focus
-Konsole opens in "sys" activity and takes focus


STEPS TO REPRODUCE
1. Create an activity and name it "game"
1. Go to Window Management -> Window Rules -> Add New
2. Window class (application) -> Exact match -> steam
3. Add Property -> Size & Position -> double click Activities
4. Assign to "game" activity
5. Go to some other activity than "game"
6. Start Steam with Global Menu or Krunner or a custom shortcut  (doesn't matter which)

OBSERVED RESULT
Steam starts up in "game" activity, but the focus is still in the other activity



EXPECTED RESULT
Steam starts up in "game" activity and switches automatically to "game" activity

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.16.11
KDE Plasma Version: 5.24.2 (Wayland)
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.2
Comment 1 joelsonejr 2023-08-07 17:43:48 UTC
I followed the steps provided, but the functionality worked as expected.