Bug 498728 - When switching activities, focussed window is not remembered
Summary: When switching activities, focussed window is not remembered
Status: RESOLVED NOT A BUG
Alias: None
Product: kwin
Classification: Plasma
Component: activities (other bugs)
Version First Reported In: 6.2.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-16 10:15 UTC by in+zam14owa
Modified: 2025-02-22 09:46 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

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