Bug 412655 - Tabbox uses wrong visualization when switching between Main and Alternative while holding a common Alt
Summary: Tabbox uses wrong visualization when switching between Main and Alternative w...
Status: REOPENED
Alias: None
Product: kwin
Classification: Plasma
Component: tabbox (other bugs)
Version First Reported In: 6.1.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-06 03:39 UTC by AndyKluger
Modified: 2024-07-19 10:54 UTC (History)
4 users (show)

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


Attachments
KCM1 (126.69 KB, image/png)
2019-10-06 03:39 UTC, AndyKluger
Details
KCM2 (121.67 KB, image/png)
2019-10-06 03:40 UTC, AndyKluger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description AndyKluger 2019-10-06 03:39:32 UTC
Created attachment 123044 [details]
KCM1

SUMMARY

I have both Main and Alternative Task Switchers triggered by Alt+<something>, traversing windows differently, and using a different visualization. If I start with one, keep holding Alt, and use the rest of the trigger for the other, then it correctly changes which windows/apps it traverses, but continues to use whichever visualization was initially triggered.

STEPS TO REPRODUCE
1. Configure Main Task Switcher to use Large Icons, Alt+Tab for All windows, and Only one window per application
2. Configure Alternative Task Switcher to use Grid, Alt+` for Current application, and deselect Only one window per application
3. Hold Alt, tap Tab, tap `. Alternatively: Hold Alt, tap `, tap Tab.

OBSERVED RESULT

When the switcher is switched, the visualization is not.

EXPECTED RESULT

When the switcher is switched, it ought to use its configured visualization.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch
KDE Plasma Version: 5.16.5
KDE Frameworks Version: 5.62.0
Qt Version: 5.13.1

ADDITIONAL INFORMATION

Attaching screenshots of tabbox KCM settings
Comment 1 AndyKluger 2019-10-06 03:40:28 UTC
Created attachment 123045 [details]
KCM2
Comment 2 AndyKluger 2021-05-15 03:36:05 UTC
Just popping in to confirm that this issue persists in kwin 5.21.5, with the same settings as originally attached.
Comment 3 AndyKluger 2021-06-12 19:51:39 UTC
I've made a good demonstration video @ https://user-images.githubusercontent.com/1787385/121787725-de97fb80-cb95-11eb-914d-e219801fe8df.mp4
Comment 4 RedBearAK 2022-05-25 21:53:29 UTC
Yep, this bug makes it impossible to transition between the main and alternate task switchers without releasing the Alt key between using Alt+Tab and Alt+Grave. I can finally do grouped-window "app switching" in Plasma with this Kwin script created by Natalie Clarius: 

https://github.com/nclarius/kwin-application-switcher

But I can't have a "Large Icons" task switcher for switching apps, and an alternate "Thumbnails" task switcher unless I release the Alt key after Alt+Tabbing to the desired "application". Without releasing Alt the Alt+Grave shortcut assigned to the alternate task switcher will instead just continue to present the "Large Icons" task switcher from the main task switcher settings. 

Fully reproducible. This really limits the power of having an alternate task switcher.
Comment 5 David Edmundson 2023-09-06 10:38:10 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.
Comment 6 RedBearAK 2023-09-06 19:04:30 UTC
Changing reported version from 5.16.5 to latest (5.27.7 as of now). Reconfirmed that the behavior is still present on Fedora 38 KDE spin, with Kwin 5.27.7. 

Task switcher will not switch from using the main task switcher (example: "Large Icons") to using the alternate task switcher (example: "Thumbnails"), even when switching to using keyboard shortcuts that are no longer associated with the main task switcher choice, unless you first let go of the modifier key (Alt, typically). 

After letting go of the modifier key (Alt) the alternate task switcher dialog (such as "Thumbnails") will appear correctly when using the shortcuts associated with the alternate task switcher settings. 

If the main task switcher choice is "Large Icons", moving from Alt+Tab to Alt+Grave will switch between windows of the same application, but the visual switcher dialog will remain as "Large Icons", until the modifier key (Alt) is released. No matter what the alternate task switcher option is set to. 

Nothing about this bug has changed since the originally reported Kwin version. 

Confirmed in both X11 and Wayland sessions. 

The issue is also true in reverse. If you start with the shortcuts that bring up the alternate task switcher, then move to using the shortcuts associated with the main task switcher, the visualization choice in the dialog will remain the alternate task switcher, inappropriately. So if switching windows within an application has a task switcher of "Thumbnails", the task switcher dialog will remain showing "Thumbnails" when moving to the application switching shortcuts, unless the modifier (Alt) is released first.
Comment 7 dashmeshsingh98 2024-07-19 10:54:15 UTC
Still happening in Plasma 6.1.3