aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-07-19 23:42:48 +0200
committerdec05eba <dec05eba@protonmail.com>2024-07-19 23:42:48 +0200
commit5938cc76111d3e3892395c32042eade4bf404b5c (patch)
tree7f41baa021a1657410d4aebad6decac4e6232c32
parent2f4ab7aedb07f514be7b8abf0fba0930af0e60e3 (diff)
Set shortcut setup status as failed if shortcut init fails as well
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}
}
}