We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9107907 commit a34d785Copy full SHA for a34d785
swaynag/swaynag.c
@@ -153,8 +153,16 @@ static void update_cursor(struct swaynag_seat *seat) {
153
}
154
pointer->cursor_theme = wl_cursor_theme_load(
155
cursor_theme, cursor_size * swaynag->scale, swaynag->shm);
156
+ if (!pointer->cursor_theme) {
157
+ sway_log(SWAY_ERROR, "Failed to load cursor theme");
158
+ return;
159
+ }
160
struct wl_cursor *cursor =
161
wl_cursor_theme_get_cursor(pointer->cursor_theme, "default");
162
+ if (!cursor) {
163
+ sway_log(SWAY_ERROR, "Failed to get default cursor from theme");
164
165
166
pointer->cursor_image = cursor->images[0];
167
wl_surface_set_buffer_scale(pointer->cursor_surface,
168
swaynag->scale);
0 commit comments