Skip to content
Snippets Groups Projects
Commit fc422756 authored by Gaël Bonithon's avatar Gaël Bonithon
Browse files

panel: Always include borders to compute snap position

If a motion event is sent twice in a row for the same pointer position
around `SNAP_DISTANCE` (this can happen if the pointer moves slowly),
the computation returns a snap position once, and `SNAP_POSITION_NONE`
the other time, because the panel has lost a pixel in between. This
makes the panel blink or bounce against the edge of the screen. Easier
to reproduce on Wayland.
parent 4a82e935
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment