Bug 484932

Summary: Window is not activated when brought to foreground
Product: [Plasma] kwin Reporter: Cristian Le <kde>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: nate, xaver.hugl
Priority: NOR    
Version: 6.0.3   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:

Description Cristian Le 2024-04-02 15:58:15 UTC
SUMMARY

The setup is that I have 2 Jetbrains IDEs that are overlapping with each other. When I select one to bring to foreground, the mouse clicks, etc. are still being sent to the background app.

So far I am not sure what kind of apps trigger it, but it seems flatpak and native apps are safe.

jp_bennett in matrix chat room also reported this happenning with vscode/thunderbird + chrome

STEPS TO REPRODUCE

Not guaranteed to be reproduced, it sometimes happens with the same Jetbrains IDE, but most often it is with different IDEs

1. Have 2 windows overlap
2. Switch between which window is in focus
3. Click/right-click/type and observe if it's directed to the appropriate window


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 40
(available in About System)
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Comment 1 Zamundaaa 2024-04-02 16:09:12 UTC
Do you have the "Slide Back" effect enabled?
Comment 2 Nate Graham 2024-04-02 16:20:32 UTC
Could also be Bug 478556.
Comment 3 Cristian Le 2024-04-02 16:24:21 UTC
(In reply to Zamundaaa from comment #1)
> Do you have the "Slide Back" effect enabled?

No, it is disabled. If i enabled that things are thousand times worse.
Comment 4 Nate Graham 2024-04-02 16:31:14 UTC

*** This bug has been marked as a duplicate of bug 478556 ***
Comment 5 Nate Graham 2024-04-02 16:46:47 UTC

*** This bug has been marked as a duplicate of bug 478556 ***
Comment 6 Cristian Le 2024-04-02 19:06:13 UTC
It happened again, and this time between a Jetbrains IDE and zulip (installed from Flatpak). This time it was because neither windows were in focus, and even though I clicked on the Jebtrains IDE in the foreground, the actions were selected for zulip in the background. Zulip remained in the background during that.
Comment 7 Nate Graham 2024-04-02 19:11:02 UTC
The problem is one or both of those apps not supporting the xdg-activation-v1 Wayland protocol.