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

wl: Add pointer_obj safe-guard in cog_wl_seat_set_cursor() #691

Merged
merged 1 commit into from
Jan 24, 2024

Conversation

psaavedra
Copy link
Member

We have to check if the seat->pointer_obj is not set NULL. In certain Wayland environments we could have no pointer capabilities (WL_SEAT_CAPABILITY_POINTER). Under this scenario, the pointer_obj is not initialized.

Fixes #690.

We have to check if the seat->pointer_obj is not set NULL. In certain
Wayland environments we could have no pointer capabilities
(WL_SEAT_CAPABILITY_POINTER). Under this scenario, the pointer_obj is
not initialized.

Fixes #690.
Copy link
Member

@aperezdc aperezdc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks for the fix @psaavedra!

@aperezdc aperezdc merged commit dd2012a into master Jan 24, 2024
5 checks passed
@aperezdc aperezdc deleted the issue_690 branch January 24, 2024 22:26
@aperezdc aperezdc added the bug Something isn't working label Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash calling wl_pointer_set_cursor() in cog-utils.c
2 participants