Bug 482704 - auto-hide non-floating bottom panel hides despite mouse cursor being at the edge of the screen
Summary: auto-hide non-floating bottom panel hides despite mouse cursor being at the e...
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: Panel (other bugs)
Version First Reported In: 6.0.1
Platform: Other Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-03-07 12:27 UTC by bastimeyer123
Modified: 2024-08-28 16:32 UTC (History)
3 users (show)

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


Attachments
40px works, 42px bugged (3.21 MB, video/mp4)
2024-03-11 11:34 UTC, bastimeyer123
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bastimeyer123 2024-03-07 12:27:17 UTC
SUMMARY
This started happening after the upgrade to Plasma 6.

The panel incorrectly hides itself in certain situations while set to auto-hide and non-floating, despite the mouse cursor being at the edge of the screen where the panel is attached to. This seems to depend on the panel height, so this must be caused by some kind of faulty fractional offset calculation or so.

When moving the mouse cursor towards the edge of the screen, the panel correctly gets shown, but if the cursor is then moved away a bit while still hovering the panel and the cursor then touches the edge of the screen again without further mouse movements, the panel hides itself again, which is bad. I could only observe this faulty behavior while using certain panel sizes. I am using the default breeze (dark) theme, in case that matters.

STEPS TO REPRODUCE
1. Have a panel with the following properties:
   - bottom
   - center
   - full width
   - auto-hide
   - translucent
   - non-floating
   - height 42 (or 38)
2. Have no windows open on the desktop
3. Move the mouse cursor towards the bottom edge of the screen -> panel appears ✓
4. Move the mouse cursor up a bit while still hovering the panel -> panel stays ✓
5. Move the mouse cursor towards the bottom edge again and keep it still -> panel hides ✕

When the panel size is set to 40 for example, this issue does not occur

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 6.0.1
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Comment 1 Nate Graham 2024-03-08 22:34:15 UTC
Is this issue reproducible for you on Wayland, or X11, or both?
Comment 2 bastimeyer123 2024-03-08 23:29:54 UTC
(In reply to Nate Graham from comment #1)
> Is this issue reproducible for you on Wayland, or X11, or both?

Happens on both Wayland and X11 using the same reproduction steps.
Screen res is 1920x1080 at 100% scaling.
Comment 3 Nate Graham 2024-03-10 22:43:07 UTC
Thanks. I can't reproduce the issue unfortunately. Tried heights between 38 and 50.
Comment 4 bastimeyer123 2024-03-11 11:34:52 UTC
Created attachment 166950 [details]
40px works, 42px bugged

(In reply to Nate Graham from comment #3)
> Thanks. I can't reproduce the issue unfortunately. Tried heights between 38
> and 50.

See the attached video...
Comment 5 Nate Graham 2024-03-11 16:10:07 UTC
Thanks. That is just really strange. I still can't reproduce it with the exact same setup.
Comment 6 Niccolò Venerandi 2024-08-28 09:21:21 UTC
What happens if you right click the very in the very bottom of the panel? Do you get the desktop or the panel context menu?
Comment 7 bastimeyer123 2024-08-28 16:32:55 UTC
Oof, I totally forgot about this issue, because I had set the panel height to 40px, which worked for me, as shown in the attached video. But now on 6.1, I'm unable to reproduce this again with 42px or any other value. Maybe this was fixed with the new panel layout changes. Closing this bug report...