Bug 427445

Summary: Cannot select grouped windows on a vertical task bar
Product: [Plasma] kwin Reporter: AK-47 <chkboom>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: butirsky, nate, plasma-bugs
Priority: VHI Keywords: regression, wayland
Version: 5.19.90   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description AK-47 2020-10-08 12:41:45 UTC
SUMMARY
On a vertical task bar, grouped windows cannot be selected. The button does not even appear depressed when clicked on

STEPS TO REPRODUCE
1. Change the task bar to a vertical task bar.
2. Create multiple windows so that they become grouped into one icon.
3. Attempt to select the window.

OBSERVED RESULT
The button to select windows that are grouped together does not respond.

EXPECTED RESULT
There should be a pop-up menu (like the horizontal bar) that allows selection of an individual window.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 33 Workstation (Beta) with Plasma 5.19.90.
(available in About System)
KDE Plasma Version: 5.19.90
KDE Frameworks Version: 5.75
Qt Version: 5.15.1

ADDITIONAL INFORMATION
Using the Wayland session. Windows are selectable with Alt+Tab.
Occurs with both Task Manager and Icon-only Task Manager.
Comment 1 AK-47 2020-10-08 12:45:26 UTC
Update: hovering over the group icon is possible, but nothing can be selected from the resulting menu.
Comment 2 Nate Graham 2020-10-08 14:04:17 UTC
Is this happening in the X11 session too, or only on Wayland? I think "is the present windows effect available?" effect detection is broken on Wayland.
Comment 3 AK-47 2020-10-08 20:48:13 UTC
Just tried it, it works fine on X11.
But I don't see the "+" group indicator, like I do with the horizontal bar (both on X11 and Wayland).
Comment 4 Nate Graham 2020-10-10 21:08:16 UTC
Weird. Cannot reproduce in my Wayland session.
Comment 5 Nate Graham 2020-10-11 03:12:34 UTC
Reproduced this under the following conditions:
1. 2 or more windows are open in an Icons-Only Task Manager, creating a grouped task
2. The Task Manager's "Clicking grouped task" behavior is set to "Cycles through tasks"
3. The active window belongs to a different app, not one of the ones in the group

In this situation, clicking on the grouped task does nothing; the last-used window in the grouped task is not brought forward as expected. I suspect this is a variant of the generic "can't activate windows from other apps" issue plaguing Wayland. Moving to KWin for now; feel free to mark as a duplicate of the generic bug already tracking this.

As a workaround, you can hover over the grouped task and click on one of the window thumbnails, or else change the "Clicking grouped task" behavior to anything else.
Comment 6 Nate Graham 2020-10-11 03:18:11 UTC
I guess it's this one: Bug 424795

*** This bug has been marked as a duplicate of bug 424795 ***
Comment 7 AK-47 2020-10-11 06:01:25 UTC
(In reply to Nate Graham from comment #5)

> As a workaround, you can hover over the grouped task and click on one of the
> window thumbnails, or else change the "Clicking grouped task" behavior to
> anything else.

Clicking on the window thumbnails does nothing. The thumbnail menu doesn't disappear though, but it just won't let me click on any of the items. Changing the behavior to "Show tooltip window thumbnails" makes the button respond, but the tooltip menu still doesn't respond at all. No indication it was pressed either. (change in item's border?)
Comment 8 Nate Graham 2020-10-11 14:20:45 UTC
Hmm, that seems like a separate and different issue. Can you file a new bug report in kwin | wayland-generic for that? Thanks!
Comment 9 AK-47 2020-10-11 15:20:24 UTC
I'm not sure how this is a separate issue given this is what I was reporting in the first place. It's totally different to what's been considered a duplicate (stuff about browsers and links).

When filing the new report, do I just copy the contents of this report and stick it into the new one?
Another option (if possible) might be to "unmark" this one?
Comment 10 Nate Graham 2020-10-11 18:01:11 UTC
Well, your issue has multiple components. The original "The button to select windows that are grouped together does not respond" issue is the activation bug I've duped it to.

"Clicking on the window thumbnails does nothing" is a different issue.
Comment 11 AK-47 2020-10-12 07:01:20 UTC
Done: https://bugs.kde.org/show_bug.cgi?id=427572

Seems more like a shell-related issue than a kwin one though?
Comment 12 Nate Graham 2020-10-12 14:01:41 UTC
Indeed.