wayland: skip loading cursor theme when using server side cursors

We don't need the client side cursor theme when using server side
cursors.
This commit is contained in:
Daniel Eklöf 2024-03-16 15:30:29 +01:00
parent 27330a5dd6
commit 578765ad83
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 6 additions and 1 deletions

View file

@ -4604,7 +4604,7 @@ bool
render_xcursor_set(struct seat *seat, struct terminal *term,
enum cursor_shape shape)
{
if (seat->pointer.theme == NULL)
if (seat->pointer.theme == NULL && seat->pointer.shape_device == NULL)
return false;
if (seat->mouse_focus == NULL) {

View file

@ -1930,6 +1930,11 @@ wayl_reload_xcursor_theme(struct seat *seat, float new_scale)
seat->pointer.cursor = NULL;
}
if (seat->pointer.shape_device != NULL) {
/* Using server side cursors */
return true;
}
int xcursor_size = 24;
{