Bug 445200

Summary: Exiting from various effects (eg Overview, Present Windows, Desktop Grid) to same window does not properly restore focus to the window
Product: [Plasma] kwin Reporter: Bharadwaj Raju <bharadwaj.raju777>
Component: effects-window-managementAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: minor CC: kdedev, nate
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot of a not fully focused window

Description Bharadwaj Raju 2021-11-09 11:33:50 UTC
Created attachment 143367 [details]
Screenshot of a not fully focused window

SUMMARY
When opening some effects (Overview, Present Windows, Desktop Grid) and then exiting back to that same window which was focused when the effect was opened, the window which should have focus does not have it. Focus is only given to it when user presses a key (which the app doesn't seem to receive), or switching to some other window and back again.

STEPS TO REPRODUCE (Overview)
1. Have a window focused
1. Open Overview
2. Search for the window from step 1 (the typing is important as it seems to "give" the effect focus)
3. Click to activate it

Note that this does not work if you activate a window different from the one which was focused in step 1. If a different window is selected then focus is restored properly.

---

STEPS TO REPRODUCE (Present Windows & Desktop Grid)
1. Have a window focused
2. Open Present Windows / Desktop Grid using the keyboard shortcut
3. Click on the window from step 1

Same note as with Overview.

OBSERVED RESULT

Window is not fully focused. Titlebar has active focus color, but the rest of the app is not focused. This can be seen in the colors (screenshot attached) and the behavior.

EXPECTED RESULT

Window should be fully focused.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.23.80
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
This is on Wayland.
Comment 1 Nate Graham 2021-11-09 21:33:49 UTC
Can reproduce.
Comment 2 TraceyC 2025-04-04 21:05:10 UTC
I'm sorry we weren't able to get to this yet. Is this still a problem for anyone with KDE Plasma 6.3.4 or later?
Comment 3 Bug Janitor Service 2025-04-19 03:47:10 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2025-05-04 03:47:26 UTC
๐Ÿ›๐Ÿงน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.