diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2024-03-16 14:30:29 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2024-03-16 14:36:44 +0000 |
| commit | 578765ad8358b74949ad1296703aec4dec7d004a (patch) | |
| tree | 015cf6476ae82ab87207a322e1c236da41b96190 | |
| parent | csi: indicate "permanently reset" for DECRQM queries of mode 67 (DECBKM) (diff) | |
wayland: skip loading cursor theme when using server side cursors
We don't need the client side cursor theme when using server side
cursors.
| -rw-r--r-- | render.c | 2 | ||||
| -rw-r--r-- | wayland.c | 5 |
2 files changed, 6 insertions, 1 deletions
@@ -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; { |
