1
1
mirror of https://github.com/swaywm/sway synced 2024-11-22 16:32:16 +01:00

swaynag: fix null dereference on scale change

If cursor-shape-v1 is available, the old wl_cursor_theme path should
not be used.
This commit is contained in:
Manuel Stoeckl 2024-11-08 19:44:30 -05:00 committed by Simon Ser
parent 62fd8c4d01
commit 03483ff370

@ -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);
}
}