mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-21 22:52:20 +00:00
examples: use NULL theme name instead of "default"
This leaves it up to wlr_xcursor_theme_load() to pick the theme name.
This commit is contained in:
parent
3668c9d86c
commit
21f8388b58
@ -293,7 +293,7 @@ int main(int argc, char *argv[]) {
|
|||||||
|
|
||||||
clock_gettime(CLOCK_MONOTONIC, &state.last_frame);
|
clock_gettime(CLOCK_MONOTONIC, &state.last_frame);
|
||||||
|
|
||||||
struct wlr_xcursor_theme *theme = wlr_xcursor_theme_load("default", 16);
|
struct wlr_xcursor_theme *theme = wlr_xcursor_theme_load(NULL, 16);
|
||||||
if (!theme) {
|
if (!theme) {
|
||||||
wlr_log(WLR_ERROR, "Failed to load cursor theme");
|
wlr_log(WLR_ERROR, "Failed to load cursor theme");
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -386,7 +386,7 @@ int main(int argc, char *argv[]) {
|
|||||||
&state.tablet_tool_axis);
|
&state.tablet_tool_axis);
|
||||||
state.tablet_tool_axis.notify = handle_tablet_tool_axis;
|
state.tablet_tool_axis.notify = handle_tablet_tool_axis;
|
||||||
|
|
||||||
state.xcursor_manager = wlr_xcursor_manager_create("default", 24);
|
state.xcursor_manager = wlr_xcursor_manager_create(NULL, 24);
|
||||||
if (!state.xcursor_manager) {
|
if (!state.xcursor_manager) {
|
||||||
wlr_log(WLR_ERROR, "Failed to load default cursor");
|
wlr_log(WLR_ERROR, "Failed to load default cursor");
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user