mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-25 14:15:58 +01:00
output/cursor: downgrade error messages
When the output doesn't support hardware cursors, these errors will be printed. However, these errors are expected and we have a proper fallback. Closes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3457
This commit is contained in:
parent
bca60c4eec
commit
7d9c595f19
1 changed files with 3 additions and 3 deletions
|
@ -220,7 +220,7 @@ static struct wlr_drm_format *output_pick_cursor_format(struct wlr_output *outpu
|
||||||
display_formats =
|
display_formats =
|
||||||
output->impl->get_cursor_formats(output, allocator->buffer_caps);
|
output->impl->get_cursor_formats(output, allocator->buffer_caps);
|
||||||
if (display_formats == NULL) {
|
if (display_formats == NULL) {
|
||||||
wlr_log(WLR_ERROR, "Failed to get cursor display formats");
|
wlr_log(WLR_DEBUG, "Failed to get cursor display formats");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -266,7 +266,7 @@ static struct wlr_buffer *render_cursor_buffer(struct wlr_output_cursor *cursor)
|
||||||
struct wlr_drm_format *format =
|
struct wlr_drm_format *format =
|
||||||
output_pick_cursor_format(output);
|
output_pick_cursor_format(output);
|
||||||
if (format == NULL) {
|
if (format == NULL) {
|
||||||
wlr_log(WLR_ERROR, "Failed to pick cursor format");
|
wlr_log(WLR_DEBUG, "Failed to pick cursor format");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -351,7 +351,7 @@ static bool output_cursor_attempt_hardware(struct wlr_output_cursor *cursor) {
|
||||||
if (texture != NULL) {
|
if (texture != NULL) {
|
||||||
buffer = render_cursor_buffer(cursor);
|
buffer = render_cursor_buffer(cursor);
|
||||||
if (buffer == NULL) {
|
if (buffer == NULL) {
|
||||||
wlr_log(WLR_ERROR, "Failed to render cursor buffer");
|
wlr_log(WLR_DEBUG, "Failed to render cursor buffer");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue