Skip to content

Conversation

OkamiW
Copy link

@OkamiW OkamiW commented Jul 30, 2025

Inspired by #8343

Fixes #8342

cursor_rebase_all calls node_at_coords, and node_at_coords only
returns the lock surface after the surface has been committed(not mapped).

Also add the missing cursor_rebase_all in handle_unlock.

OkamiW added 2 commits July 30, 2025 14:50
Inspired by swaywm#8343

cursor_rebase_all calls node_at_coords, and node_at_coords only
returns the lock surface after the surface has been committed(not mapped).

Also add the missing cursor_rebase_all in handle_unlock.
Before this commit, if the cursor is at screen center, and the lock is
swaylock, the cursor would be at swaylock's subsurface(the indicator).

Since it's not the lock surface, `handle_rebase` would refuse to
rebase the cursor to there. Thereby the cursor enter event won't be
sent to swaylock.

This commit fix the issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Swaylock receives no pointer enter until cursor motion
1 participant