Bug 441920

Summary: Clicking icon of GTK app does not switch to it if it has a subwindow
Product: [Plasma] kwin Reporter: David <david.cortes.rivera>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: nate
Priority: NOR    
Version: 5.21.5   
Target Milestone: ---   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description David 2021-09-02 20:16:15 UTC
SUMMARY
If I have some GTK app with a sub-dialog window open in the background and currently have the active focus on a different window, clicking the icon of said GTK app in the taskbar will not switch to that app's window.

STEPS TO REPRODUCE
1. Have some GTK app with a sub-dialog active in the background. For example, try synaptic with its small window of whether to apply changes or not or the sub-window it creates while installing a package.
2. Launch any other windowed app.
3. Click the synaptic icon in the taskbar.

OBSERVED RESULT
Should switch to synaptic.

EXPECTED RESULT
Stays on the current window.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.21.5
KDE Frameworks Version: 5.85.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 David 2021-09-02 21:36:17 UTC
An easier reproducer: launch visual studio code, click "Help" -> "About", and then switch to the window of a different application.
Comment 2 Nate Graham 2021-09-02 21:39:57 UTC
X11 or Wayland? Does it happen with Gedit's "About Text Editor" window too?
Comment 3 David 2021-09-02 21:41:18 UTC
(In reply to Nate Graham from comment #2)
> X11 or Wayland? Does it happen with Gedit's "About Text Editor" window too?

X11, and it also happens with gedit.
Comment 4 Nate Graham 2021-09-02 21:42:00 UTC
Gotcha. Cannot reproduce on X11.
Comment 5 David 2021-09-03 17:16:56 UTC
I don't think this is to blame on kwin. I downgraded kwin to a previous version (5.20.5) in which this and other bugs were not happening, and downgraded latte too just in case, but I see this bug is still there.
Comment 6 Nate Graham 2021-09-07 14:28:04 UTC
Are you using any window rules?
Comment 7 David 2021-09-07 16:05:35 UTC
(In reply to Nate Graham from comment #6)
> Are you using any window rules?

I don't have any window rules.
Comment 8 Nate Graham 2021-09-08 18:47:59 UTC
Thanks.
Comment 9 David Edmundson 2023-09-06 10:38:30 UTC
This bug was reported against an outdated version of KWin. We have made many changes since the. 
If the issue persists in newer versions can you reopen the bug report updating the version number.