mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
output: adjust warning when hardware cursors are unsupported
We'd print "cursor texture size exceeds hardware limitations" when some hardware doesn't support cursors at all. Change the message to better indicate the cause.
This commit is contained in:
parent
b97106ddcb
commit
776f2c4e4d
1 changed files with 4 additions and 0 deletions
|
|
@ -195,6 +195,10 @@ static struct wlr_buffer *render_cursor_buffer(struct wlr_output_cursor *cursor)
|
|||
size_t sizes_len = 0;
|
||||
const struct wlr_output_cursor_size *sizes =
|
||||
output->impl->get_cursor_sizes(cursor->output, &sizes_len);
|
||||
if (sizes_len == 0) {
|
||||
wlr_log(WLR_DEBUG, "Hardware cursor not supported");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
bool found = false;
|
||||
for (size_t i = 0; i < sizes_len; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue