diff options
Diffstat (limited to 'sway')
-rw-r--r-- | sway/input/seat.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c index 36593806..a71d794b 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c | |||
@@ -914,8 +914,10 @@ void seat_configure_xcursor(struct sway_seat *seat) { | |||
914 | wlr_xcursor_manager_destroy(seat->cursor->xcursor_manager); | 914 | wlr_xcursor_manager_destroy(seat->cursor->xcursor_manager); |
915 | seat->cursor->xcursor_manager = | 915 | seat->cursor->xcursor_manager = |
916 | wlr_xcursor_manager_create(cursor_theme, cursor_size); | 916 | wlr_xcursor_manager_create(cursor_theme, cursor_size); |
917 | sway_assert(seat->cursor->xcursor_manager, | 917 | if (!seat->cursor->xcursor_manager) { |
918 | "Cannot create XCursor manager for theme"); | 918 | sway_log(SWAY_ERROR, |
919 | "Cannot create XCursor manager for theme '%s'", cursor_theme); | ||
920 | } | ||
919 | } | 921 | } |
920 | 922 | ||
921 | for (int i = 0; i < root->outputs->length; ++i) { | 923 | for (int i = 0; i < root->outputs->length; ++i) { |
@@ -924,11 +926,11 @@ void seat_configure_xcursor(struct sway_seat *seat) { | |||
924 | bool result = | 926 | bool result = |
925 | wlr_xcursor_manager_load(seat->cursor->xcursor_manager, | 927 | wlr_xcursor_manager_load(seat->cursor->xcursor_manager, |
926 | output->scale); | 928 | output->scale); |
927 | 929 | if (!result) { | |
928 | sway_assert(!result, | 930 | sway_log(SWAY_ERROR, |
929 | "Cannot load xcursor theme for output '%s' with scale %f", | 931 | "Cannot load xcursor theme for output '%s' with scale %f", |
930 | // TODO: Fractional scaling | 932 | output->name, output->scale); |
931 | output->name, (double)output->scale); | 933 | } |
932 | } | 934 | } |
933 | 935 | ||
934 | cursor_set_image(seat->cursor, "left_ptr", NULL); | 936 | cursor_set_image(seat->cursor, "left_ptr", NULL); |