Bug 498728

Summary: When switching activities, focussed window is not remembered
Product: [Plasma] kwin Reporter: in+zam14owa
Component: activitiesAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: ivan.cukic, nate, oded
Priority: NOR    
Version First Reported In: 6.2.5   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description in+zam14owa 2025-01-16 10:15:55 UTC
SUMMARY


STEPS TO REPRODUCE
1. Make activity A active, focus a window on DP-2
2. Make activity B active, do stuff here on DP-1
3. Make activity A active again, window on DP-2 is not focussed anymore

OBSERVED RESULT

The window I want to interact with after switching activity is no longer focussed. This is because after switching activities it focusses the window on the display that has the mouse cursor.

EXPECTED RESULT

The window I want to interact with after switching activity is focussed.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: 6.2.5
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.9.0
Qt Version: 6.8.1

ADDITIONAL INFORMATION

This is workflow breaking, it would be nice if Plasma remembered the focussed window for an activity. Currently I have to manually focus the correct window again when switching activity for windows that are on different displays.
Comment 1 Oded Arbel 2025-01-17 09:22:55 UTC
There's a new feature in Plasma 6.2 called "Separate Screen Focus", that you can configure in System Settings -> Window Management -> Window Behavior -> Focus, under "Multi-screen Behavior" (only visible when more than one screen is connected - I was so frustrated trying to look for it on my laptop on the train, because my brain told me it should be there, but it wasn't).

The default was changed in the 6.2 release - please try to see if changing the checkbox solves the problem.
Comment 2 in+zam14owa 2025-01-17 09:28:03 UTC
(In reply to Oded Arbel from comment #1)
> There's a new feature in Plasma 6.2 called "Separate Screen Focus", that you
> can configure in System Settings -> Window Management -> Window Behavior ->
> Focus, under "Multi-screen Behavior" (only visible when more than one screen
> is connected - I was so frustrated trying to look for it on my laptop on the
> train, because my brain told me it should be there, but it wasn't).
> 
> The default was changed in the 6.2 release - please try to see if changing
> the checkbox solves the problem.

I would never have found that myself lol. Thanks!

It was checked, I unchecked it and that seems to have fixed it. I'm going to give it some time to see if it has any side effects but sofar it is looking good so this probably can be closed.
Comment 3 Oded Arbel 2025-01-17 10:16:08 UTC
(In reply to krims0n32 from comment #2)
> I would never have found that myself lol. Thanks!

Yea, it a new thing in 6 (I think 6.1, but I'm not sure) and in 6.2.0 they changed the behavior with the new default to be this annoying thing (supposedly more people find the new default more useful, but I think the jury is still out). Personally I would have preferred the original 6.0 behavior that neither checkbox state reproduces, but 🤷. See https://invent.kde.org/plasma/kwin/-/merge_requests/5625 for more details.
Comment 4 in+zam14owa 2025-02-22 09:46:29 UTC
Not a bug. Oded Arbel pointed me to a setting I missed.