Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug #1786509: Plank hides unexpectedly with autohide enabled in left or top positions #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lilly-lizard
Copy link

@lilly-lizard lilly-lizard commented Aug 21, 2022

Bug description

https://bugs.launchpad.net/plank/+bug/1786509
When plank is on the top or left position, autohide doesn't work as expected. Moving the mouse pointer along the edge of the screen causes plank to randomly hide and unhide itself (as shown in the video attached to the bug report, although unlike in the original bug report I can see this happen next to icons as well).
I've reproduced this on archlinux with xfce.

Cause

window.leave_notify_event gets triggered sporadically (which calls handle_leave_notify_event) when the pointer is on the top or left edge of the screen.

Changes

Changed the update_hovered_with_coords call in handle_leave_notify_event to pass the actual x and y coordinates instead of -1 as args. This ensures Hovered isn't set to false when handle_leave_notify_event is mistakenly called while the mouse pointer is actually within the dock 'window' area. Unhiding still works as normal otherwise.

changed the `update_hovered_with_coords` call in `handle_leave_notify_event` to pass the actual x and y coordinates instead of -1 as args to ensure `Hovered` isn't set to false when `handle_leave_notify_event` is mistakenly called and the pointer is still within the dock 'window' area.

bug description:

https://bugs.launchpad.net/plank/+bug/1786509
`handle_leave_notify_event` gets called sporadically (due to `window.leave_notify_event` bring triggered) when the dock is set to left or top, the pointer is on the edge of the screen and when auto-hide setting is enabled. this results in the dock hiding itself when it shouldn't.
I reproduced this on archlinux with xfce.
@lilly-lizard lilly-lizard changed the title Bug #1786509: Plank hides unexpectedly with autohide on the left or top of screen Bug #1786509: Plank hides unexpectedly with autohide enabled in left or top positions Aug 21, 2022
@zquestz
Copy link

zquestz commented Dec 16, 2024

This seems to be fixed in master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants