Bug 488722 - Compact switcher should raise window and close itself on click
Summary: Compact switcher should raise window and close itself on click
Status: RESOLVED FIXED
Alias: None
Product: kdeplasma-addons
Classification: Unmaintained
Component: Task Switchers (other bugs)
Version First Reported In: 6.1.0
Platform: Neon Linux
: NOR wishlist
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2024-06-19 10:12 UTC by cwo
Modified: 2024-10-29 12:49 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.2
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cwo 2024-06-19 10:12:14 UTC
SUMMARY

With the Thumbnail Grid and Sidebar switchers, when the user clicks them with the mouse, the window is immediately raised and the switcher closes.

With the Large Icons, Flip Switch, and Cover Switch switchers, when an entry is clicked, the clicked window is highlighted in the switcher, but the switcher remains open until the user confirms this with a second click. This makes sense, as multiple windows of the same application can't be distinguished at all (for Large Icons), or not all windows are easily accessible so the user may need to click a different window first to access the one they want to raise (for Flip/Cover Switch).

The Compact switcher behaves like the second group, but there seems to be no reason - All windows are immediately displayed, and the window title is clearly visible. Clicking a list entry should immediately raise the corresponding window and close the switcher, like the Thumbnail Grid and Sidebar switchers do.

This is largely not an issue if the switcher is accessed through Alt-Tab, as releasing the Alt key will function like the second click. It is inconvenient if the switcher is accessed through binding a corner to "Show Switcher" in the Screen Edges kcm.

STEPS TO REPRODUCE
1. Bind a screen corner to "Toggle Window Switching", open several windows, then move the pointer to the corner that was bound to the switcher.
2. In the list that appears, left-click one of the windows.

OBSERVED RESULT

The entry in the list is highlighted (and, if the "Show selected window" option in the Switcher kcm is enabled, the corresponing window is raised), but the switcher remains open and a click anywhere outside the switcher will cancel the whole action, returning focus to the window that originally had it before activating the switcher..
 

EXPECTED RESULT

The window corresponding to the selected task is raised and the switcher is closed, allowing the user to continue their task with that window. 

SOFTWARE/OS VERSIONS

Current Neon with Plasma 6.2 Dev; but from my light testing, Plasma 2.27.11 in Kubuntu 24.04 has the same behavior. 

KDE Plasma Version:  6.1.80
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.0

ADDITIONAL INFORMATION

One argument against this change would be that it would not allow disambiguation of windows that have the same title (e.g. several terminals). But any disambiguation only works if "Show selected window" is active, so if that is disabled, it seems this is an extra meaningless click. (And the disambiguation would also be required in the Thumbnail Grid and Sidebar switchers, as the thumbnail is likely too small to distinguish e.g. the contents of several Konsole windows in the same directory.
Comment 1 Bug Janitor Service 2024-06-23 03:13:39 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kdeplasma-addons/-/merge_requests/602
Comment 2 Ismael Asensio 2024-06-24 18:01:25 UTC
Git commit 307df41caca2bed3ae06595f9fb0e0409172702e by Ismael Asensio.
Committed on 24/06/2024 at 17:56.
Pushed by iasensio into branch 'master'.

kwin/switchers/compact: Activate window on single click

The compact switcher shows clearly the icon and title for all
the windows, so there is no need for an intermediate "select and
dissambiguate" state.

In this case delay the activation just enough to have visual feedback
of the highlight switching to the clicked item.
FIXED-IN: 6.2

M  +12   -6    kwin/windowswitchers/compact/contents/ui/main.qml

https://invent.kde.org/plasma/kdeplasma-addons/-/commit/307df41caca2bed3ae06595f9fb0e0409172702e
Comment 3 holotikj 2024-10-23 11:48:52 UTC
Hi,
is there please a chance to make this optional? When accessing the switcher through Alt-Tab, this change severely impacts usability and was in fact one of the reasons why I was still using the compact switcher.

Thanks,
Jakub
Comment 4 cwo 2024-10-29 12:49:44 UTC
(In reply to holotikj from comment #3)
> is there please a chance to make this optional? When accessing the switcher
> through Alt-Tab, this change severely impacts usability and was in fact one
> of the reasons why I was still using the compact switcher.

Can you explain how this severely impacts usability?

Switchers don't really have an UI system for individual configuration options I think, but a version without that patch could be uploaded to store.kde.org.