mirror of
https://github.com/swaywm/sway.git
synced 2025-11-11 13:29:51 -05:00
swaynag: fix null dereference on scale change
If cursor-shape-v1 is available, the old wl_cursor_theme path should
not be used.
(cherry picked from commit 03483ff370)
This commit is contained in:
parent
97e2556de7
commit
79c8197381
1 changed files with 3 additions and 1 deletions
|
|
@ -324,7 +324,9 @@ static void output_scale(void *data, struct wl_output *output,
|
||||||
swaynag_output->scale = factor;
|
swaynag_output->scale = factor;
|
||||||
if (swaynag_output->swaynag->output == swaynag_output) {
|
if (swaynag_output->swaynag->output == swaynag_output) {
|
||||||
swaynag_output->swaynag->scale = swaynag_output->scale;
|
swaynag_output->swaynag->scale = swaynag_output->scale;
|
||||||
|
if (!swaynag_output->swaynag->cursor_shape_manager) {
|
||||||
update_all_cursors(swaynag_output->swaynag);
|
update_all_cursors(swaynag_output->swaynag);
|
||||||
|
}
|
||||||
render_frame(swaynag_output->swaynag);
|
render_frame(swaynag_output->swaynag);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue