Bug 481862 - Minimizing of non-kde/qt windows doesn't give focus to last active window
Summary: Minimizing of non-kde/qt windows doesn't give focus to last active window
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.93.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-26 14:53 UTC by Jason Straight
Modified: 2024-02-28 13:22 UTC (History)
1 user (show)

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


Attachments

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