Bug 482079

Summary: click target for virtual desktops is too small in the overview effect, clicking bottom of virtual desktop closes the effect instead
Product: [Plasma] kwin Reporter: Adam Fontenot <adam.m.fontenot+kde>
Component: effects-overviewAssignee: KWin default assignee <kwin-bugs-null>
Status: CONFIRMED ---    
Severity: minor CC: julien.dlq, nate, niccolo.venerandi, nicolas.fella
Priority: NOR Keywords: qt6
Version First Reported In: 6.0.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: screencast showing the issue

Description Adam Fontenot 2024-02-29 19:18:52 UTC
Created attachment 166214 [details]
screencast showing the issue

SUMMARY

It seems the clickable area on the virtual desktop in the effect is a bit too small. I am able to close the effect by clicking on the bottom of any virtual desktop representation, rather than switching to the desktop in question.

Screen is 1440p at 1:1. This is Plasma 6, not 5.93.0.

STEPS TO REPRODUCE
1. Open the overview effect (I have a hot corner for this).
2. Click on the very bottom of one of the virtual desktops (one you aren't currently on) at the top.

OBSERVED RESULT

The effect closes.

EXPECTED RESULT

The clicked virtual desktop is made active.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.7.6-arch1-1 (64-bit)
Graphics Platform: Wayland
Comment 1 guimarcalsilva 2024-02-29 23:17:26 UTC
I can reproduce the issue. The bottom ~10% of the desktop preview closes the effect instead of switching desktops.
Comment 2 Nate Graham 2024-03-01 07:03:52 UTC
When you hover over a desktop, it slightly expands. I think what's happening is that the click area is the original size not the expanded size.
Comment 3 Adam Fontenot 2024-03-01 08:33:05 UTC
(In reply to Nate Graham from comment #2)
> When you hover over a desktop, it slightly expands. I think what's happening
> is that the click area is the original size not the expanded size.

If you look closely at the video, you'll see that I'm clicking inside the original bounds of the virtual desktop. So I don't *think* this is the cause, although it's possible something related to the expansion effect is responsible. I'd say the bottom 15-20% of the virtual desktop area cancels the overview, in my tests.