Skip to content

Conversation

@akliuxingyuan
Copy link
Contributor

No description provided.

}

protocols.cursor_shape_manager = wlr_cursor_shape_manager_v1_create(display, 1);
cursor_shape_set_request.set_callback([&] (void *data)
Copy link
Member

Choose a reason for hiding this comment

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

We seem to be using a lot of seat->priv->cursor->... fields here. Maybe we should move the whole thing to a method in https://github.com/WayfireWM/wayfire/blob/master/src/core/seat/cursor.hpp#L11

In fact we already have something similar here https://github.com/WayfireWM/wayfire/blob/master/src/core/seat/cursor.hpp#L26, so we could even refactor the checks to be shared (a private method cursor_t::can_client_set_cursor() which does the checks).

Copy link
Member

@ammen99 ammen99 left a comment

Choose a reason for hiding this comment

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

lgtm, thanks!

@ammen99
Copy link
Member

ammen99 commented Oct 13, 2025

please take a look at the codestyle, the CI contains a patch you can apply.

@akliuxingyuan
Copy link
Contributor Author

code style fixed.

@ammen99 ammen99 merged commit 0265b54 into WayfireWM:master Oct 15, 2025
4 checks passed
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