Bug 368459 - Group menu steals focus, cannot hide window
Summary: Group menu steals focus, cannot hide window
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager (show other bugs)
Version: master
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-08 15:23 UTC by Christoph Feck
Modified: 2023-04-11 21:06 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
kde: Usability?


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Feck 2016-09-08 15:23:00 UTC
When windows get grouped to a single button in the task bar, you can no longer hide a window from this group.

Clicking on the task bar button causes the pop-up menu to steal focus.

This means the window which I was trying to hide gets deactivated, so clicking on the menu entry only reactivates the window, instead of hiding it.

This is a regression from KDE 4.
Comment 1 Kai Uwe Broulik 2016-09-11 20:04:39 UTC
On the other hand starting in 5.8 you can use the keyboard to navigate the popup menu for which it needs to have focus. We have a conflict here. Not sure what to do. Usability?
Comment 2 Christoph Feck 2016-09-12 00:51:54 UTC
Oh, did not know that. Perhaps check which window has the focus before setting focus to the menu?
Comment 3 Heiko Tietze 2016-09-12 07:08:30 UTC
The context menu for grouped objects should affect all items. But I agree with Christoph that we should keep the focus where it is. 
Microsoft Windows shows a menu on left click where the active window is highlighted (focus goes from the window itself to this menu entry). When the user right clicks a menu item the respective window comes into foreground and the common window menu pops up with the option to minimize etc.
Comment 4 Eike Hein 2016-09-12 07:28:05 UTC
This is a broader problem. There's a similar issue where clicking the active window to minimize it from a Task Manager on the desktop containment doesn't work, because the initial press makes the desktop gain focus, which removes the IsActive state from the window, and minimize only happens when IsActive is true. The code needs to handle this generally for both cases to work. It's on my todo.
Comment 5 Eike Hein 2016-09-21 17:57:07 UTC

*** This bug has been marked as a duplicate of bug 366732 ***
Comment 6 Christoph Feck 2020-08-17 19:05:49 UTC
Not sure if bug 366732 was really fixed, but the issue reported here is still reproducible with today's master, so these might need a different fix. Reopening.
Comment 7 Nate Graham 2023-04-11 21:06:20 UTC
When a Task is grouped, there are at least two ways to minimize specific windows:
- Hover over grouped Task, right-click on thumbnail of window you want to minimize > More > Minimize
- Configure grouped Tasks to show the Group Dialog or thumbnails when clicked > right-click the entry in the group dialog or thumbnail for the window you want to minimize > More > Minimize