Bug 481415

Summary: Double-clicking an app button in taskbar no longer minimizes app after resuming from sleep
Product: [Plasma] kwin Reporter: Steve Cossette <farchord>
Component: multi-screenAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: fanzhuyifan, nate
Priority: NOR    
Version First Reported In: 5.93.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: A video of the behavior occuring. This was in RC1, and at that point I didn't know how to properly reproduce it.
attachment-688321-0.html
attachment-688394-0.html

Description Steve Cossette 2024-02-16 14:47:55 UTC
Created attachment 165858 [details]
A video of the behavior occuring. This was in RC1, and at that point I didn't know how to properly reproduce it.

Description:
In the icon-only task manager, usually, if you click an app button, it will bring that app to the forefront. If you click again, it'll minimize it. This bug, when triggered, stops the minimizing behavior from happening on the second screen.

How to reproduce:
(NOTE: in my case, I have 2 monitors, and my left monitor is set as primary)
1- Open a new session, open a couple apps. 
2- Make sure both your monitors have a taskbar, with an icon-only task manager.
3- The apps should show on both taskbars.
4- Lock your session (Meta+L). 
(Note: I have my screen set to turn off after 5 seconds of suspending. Not sure if it's relevant to this bug though)
5- Resume your session.
In my case, activating/minimizing windows by clicking on the app in the icon-only taskbar on the PRIMARY screen works fine.
Doing the same thing on the SECONDARY screen though no longer works. 
Also, you'll see that the icon-only taskbar's theme/design is a bit odd, a large line pops above the button. Maybe a cause of this bug...?
Comment 1 Steve Cossette 2024-02-16 14:48:50 UTC
Oh one more clarification:

This bug seems to somehow resolve itself after a while. I only notice after a couple hours that the minimize behavior strangely starts working again out of the blue. I don't know how to reproduce that part though.
Comment 2 fanzhuyifan 2024-02-16 16:43:41 UTC
Thank you for your bug report!

Unfortunately I cannot reproduce on wayland, master build on arch linux.

Is this happening on x11 or wayland? Do you see this happening with all apps, or just a few apps? Do you still reproduce this bug in RC2?
Comment 3 Steve Cossette 2024-02-16 16:57:30 UTC
Created attachment 165864 [details]
attachment-688321-0.html

Yes to all. I am using fedora 40 on wayland on latest rc2.

On Fri, Feb 16, 2024 at 11:43 AM <bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=481415
>
> fanzhuyifan@gmail.com changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>                  CC|                            |fanzhuyifan@gmail.com
>          Resolution|---                         |WAITINGFORINFO
>              Status|REPORTED                    |NEEDSINFO
>
> --- Comment #2 from fanzhuyifan@gmail.com ---
> Thank you for your bug report!
>
> Unfortunately I cannot reproduce on wayland, master build on arch linux.
>
> Is this happening on x11 or wayland? Do you see this happening with all
> apps,
> or just a few apps? Do you still reproduce this bug in RC2?
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 4 Steve Cossette 2024-02-16 16:57:59 UTC
Created attachment 165865 [details]
attachment-688394-0.html

Oh and its any open apps. It does it for them all. But only on one screen.

On Fri, Feb 16, 2024 at 11:43 AM <bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=481415
>
> fanzhuyifan@gmail.com changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>                  CC|                            |fanzhuyifan@gmail.com
>          Resolution|---                         |WAITINGFORINFO
>              Status|REPORTED                    |NEEDSINFO
>
> --- Comment #2 from fanzhuyifan@gmail.com ---
> Thank you for your bug report!
>
> Unfortunately I cannot reproduce on wayland, master build on arch linux.
>
> Is this happening on x11 or wayland? Do you see this happening with all
> apps,
> or just a few apps? Do you still reproduce this bug in RC2?
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 5 Steve Cossette 2024-02-16 17:01:38 UTC
Just to be 100% clear:

This only happens on the non-primary screen. The primary screen works just fine/normally.
Comment 6 Nate Graham 2024-02-16 19:49:22 UTC

*** This bug has been marked as a duplicate of bug 478951 ***