commit 03483ff3707a358d935e451d39748e58c205ce8a
parent 62fd8c4d011ea4dc360831723a3844c0e4439f32
Author: Manuel Stoeckl <code@mstoeckl.com>
Date: Fri, 8 Nov 2024 19:44:30 -0500
swaynag: fix null dereference on scale change
If cursor-shape-v1 is available, the old wl_cursor_theme path should
not be used.
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/swaynag/swaynag.c b/swaynag/swaynag.c
@@ -324,7 +324,9 @@ static void output_scale(void *data, struct wl_output *output,
swaynag_output->scale = factor;
if (swaynag_output->swaynag->output == swaynag_output) {
swaynag_output->swaynag->scale = swaynag_output->scale;
- update_all_cursors(swaynag_output->swaynag);
+ if (!swaynag_output->swaynag->cursor_shape_manager) {
+ update_all_cursors(swaynag_output->swaynag);
+ }
render_frame(swaynag_output->swaynag);
}
}