mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
Add logging in wlr_cursor
This commit is contained in:
parent
9383aaf89e
commit
622a0d838b
1 changed files with 11 additions and 0 deletions
|
@ -26,6 +26,7 @@
|
||||||
#define _XOPEN_SOURCE 500
|
#define _XOPEN_SOURCE 500
|
||||||
#include <wlr/render.h>
|
#include <wlr/render.h>
|
||||||
#include <wlr/xcursor.h>
|
#include <wlr/xcursor.h>
|
||||||
|
#include <wlr/util/log.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
@ -238,6 +239,16 @@ struct wlr_cursor_theme *wlr_cursor_theme_load(const char *name, int size) {
|
||||||
load_default_theme(theme);
|
load_default_theme(theme);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wlr_log(L_DEBUG, "Loaded cursor theme '%s', available cursors:",
|
||||||
|
theme->name);
|
||||||
|
for (size_t i = 0; i < theme->cursor_count; ++i) {
|
||||||
|
struct wlr_cursor *c = theme->cursors[i];
|
||||||
|
struct wlr_cursor_image *i = c->images[0];
|
||||||
|
wlr_log(L_DEBUG, "%s (%u images) %dx%d+%d,%d",
|
||||||
|
c->name, c->image_count,
|
||||||
|
i->width, i->height, i->hotspot_x, i->hotspot_y);
|
||||||
|
}
|
||||||
|
|
||||||
return theme;
|
return theme;
|
||||||
|
|
||||||
out_error_name:
|
out_error_name:
|
||||||
|
|
Loading…
Reference in a new issue