mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-16 22:05:21 -05:00
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:
parent
27330a5dd6
commit
578765ad83
2 changed files with 6 additions and 1 deletions
2
render.c
2
render.c
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue