Bug 481862

Summary: Minimizing of non-kde/qt windows doesn't give focus to last active window
Product: [Plasma] kwin Reporter: Jason Straight <j.straight-kde>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: nate
Priority: NOR    
Version First Reported In: 5.93.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Jason Straight 2024-02-26 14:53:39 UTC
In wayland (not tested on xorg), when I minimize a non QT application, focus is not given to the last active window.

I noticed this to be an issue while trying to get Keepass auto-type working on Wayland with the KPUinput plug-in.

When Keepass minimizes itself to perform the auto-type, the last active window is not given focus, and the password is not properly sent to the intended window because of that.

I experimented by minimizing and restoring some windows and realized this to be the case with every non QT application I tried.
Comment 1 Nate Graham 2024-02-26 22:06:40 UTC
Are all of the tested apps using XWayland? Are you using the Slide Back effect? Do you have any other non-default KWin effects active?
Comment 2 Jason Straight 2024-02-27 03:07:28 UTC
(In reply to Nate Graham from comment #1)
> Are all of the tested apps using XWayland?

They are. 

What do you know - an actual use for xeyes.

>Are you using the Slide Back effect?

No. I am using squash, but I also tried without it.

>Do you have any other non-default KWin effects active?

No. Everything is Defaults under Desktop Effects.


Thanks.
Comment 3 Vlad Zahorodnii 2024-02-27 12:39:10 UTC
Cannot reproduce
Comment 4 Jason Straight 2024-02-27 14:30:47 UTC
(In reply to Vlad Zahorodnii from comment #3)
> Cannot reproduce

I reproduced with a fresh user. Are you on the same version (rc2/5.93) as me? Maybe it's already fixed?
Comment 5 Nate Graham 2024-02-27 19:34:00 UTC
Thanks. Can you test the final 6.0 release tomorrow?
Comment 6 Jason Straight 2024-02-28 13:22:14 UTC
Working in 6.0