Bug 492158

Summary: Panel widgets' hitboxes have odd deadzones
Product: [Plasma] plasmashell Reporter: Fernando M. Muniz <fernandommuniz>
Component: PanelAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: nate, niccolo.venerandi, niccolo, noahadvs, qydwhotmail
Priority: NOR    
Version First Reported In: 6.1.5   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: 6.2.0
Sentry Crash Report:
Attachments: Odd hitbox.
Same deadzone on another one.
Same deadzone on anoter part again.
Same issue with the panel on the bottom.
Same issue with the floating panel.
The same issue on the bottom-middle of the Clipboard.
Monitor settings.
150% also has this issue.

Description Fernando M. Muniz 2024-08-25 10:47:53 UTC
Created attachment 172934 [details]
Odd hitbox.

The video explains it best.
Comment 1 Fushan Wen 2024-08-27 15:23:06 UTC
Does it always happen, and for all widgets?
Comment 2 Fernando M. Muniz 2024-08-27 17:02:56 UTC
Created attachment 173010 [details]
Same deadzone on another one.
Comment 3 Fernando M. Muniz 2024-08-27 17:03:46 UTC
Created attachment 173011 [details]
Same deadzone on anoter part again.
Comment 4 Fernando M. Muniz 2024-08-27 17:05:44 UTC
It's weird, the icon even responds with an animation, but it doesn't do what it's supposed to do.
Comment 5 Nate Graham 2024-08-27 18:57:15 UTC
Is this on X11? Cannot reproduce on current git master in a Wayland session.
Comment 6 Fernando M. Muniz 2024-08-28 03:12:06 UTC
Wayland.
Comment 7 Fernando M. Muniz 2024-08-28 07:33:11 UTC
Created attachment 173030 [details]
Same issue with the panel on the bottom.
Comment 8 Fernando M. Muniz 2024-08-28 07:36:06 UTC
Created attachment 173031 [details]
Same issue with the floating panel.
Comment 9 Fernando M. Muniz 2024-08-29 17:19:57 UTC
Created attachment 173101 [details]
The same issue on the bottom-middle of the Clipboard.
Comment 10 Nate Graham 2024-08-29 19:43:26 UTC
This is very strange. Any ideas, Niccolò?
Comment 11 Fernando M. Muniz 2024-09-19 14:50:14 UTC
Doesn't seem to work when the panel is 200 in size. So maybe this issue only happens when the size is 50 like I'm using?
Comment 12 Noah Davis 2024-09-20 10:55:57 UTC
Do you have a fractional UI scale factor? For example, 150% scale in the Display & Monitor settings.
Comment 13 Fernando M. Muniz 2024-09-20 10:57:41 UTC
Created attachment 173908 [details]
Monitor settings.
Comment 14 Fernando M. Muniz 2024-09-21 06:02:02 UTC
Created attachment 173928 [details]
150% also has this issue.
Comment 15 Fernando M. Muniz 2024-09-23 18:38:33 UTC
Can it be checked if the hitbox that causes the widgets' squish animation is not the exact same hitbox for its function?
Comment 16 Bug Janitor Service 2024-09-26 07:51:56 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/4757
Comment 17 Niccolò Venerandi 2024-09-27 11:18:17 UTC
Git commit 005574fe8d16d1bc8cea72b372da6f42e74fee71 by Niccolò Venerandi.
Committed on 27/09/2024 at 11:18.
Pushed by niccolove into branch 'master'.

Switch to calling the onPressed handler directly


This is because the "pressed" signal is overridden by its bool value
on the MouseArea item.

This fixes the inability to open/close applets by clicking in the space between them in the system tray.
Related: bug 493634

M  +5    -1    applets/systemtray/package/contents/ui/items/PlasmoidItem.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/005574fe8d16d1bc8cea72b372da6f42e74fee71
Comment 18 Niccolò Venerandi 2024-09-27 11:18:25 UTC
Git commit df76286c47856671937932772c86223e152204c5 by Niccolò Venerandi.
Committed on 27/09/2024 at 11:18.
Pushed by niccolove into branch 'Plasma/6.2'.

Switch to calling the onPressed handler directly


This is because the "pressed" signal is overridden by its bool value
on the MouseArea item.

This fixes the inability to open/close applets by clicking in the space between them in the system tray.
Related: bug 493634


(cherry picked from commit 005574fe8d16d1bc8cea72b372da6f42e74fee71)

24b4a223 Switch to calling the onPressed handler directly

Co-authored-by: Niccolò Venerandi <niccolo@venerandi.com>

M  +5    -1    applets/systemtray/package/contents/ui/items/PlasmoidItem.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/df76286c47856671937932772c86223e152204c5