From 5938cc76111d3e3892395c32042eade4bf404b5c Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 19 Jul 2024 23:42:48 +0200 Subject: Set shortcut setup status as failed if shortcut init fails as well --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 4a4d0fc..598cc97 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4064,7 +4064,7 @@ static void activate(GtkApplication *app, gpointer) { if(gsr_info.system_info.display_server == DisplayServer::WAYLAND) { if(!gsr_global_shortcuts_init(&global_shortcuts, init_shortcuts_callback, NULL)) { fprintf(stderr, "gsr error: failed to initialize global shortcuts\n"); - global_shortcuts_initialized = false; + init_shortcuts_callback(false, nullptr); } } } -- cgit v1.2.3