aboutsummaryrefslogtreecommitdiff
path: root/src/global_shortcuts.c
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-07-19 22:51:48 +0200
committerdec05eba <dec05eba@protonmail.com>2024-07-19 22:51:48 +0200
commitd99f9dc2645a443649965c44026f80631561f2b3 (patch)
tree9c325fbf096ad4a1496c16ba739b0b8e3e5277dc /src/global_shortcuts.c
parent0e5c1a940cd4ff4291aea97972671d331d10f694 (diff)
Dont show global hotkeys on wayland if not supported
Diffstat (limited to 'src/global_shortcuts.c')
-rw-r--r--src/global_shortcuts.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/global_shortcuts.c b/src/global_shortcuts.c
index 7037eb8..9933891 100644
--- a/src/global_shortcuts.c
+++ b/src/global_shortcuts.c
@@ -139,14 +139,16 @@ static void dbus_signal_create_session(GDBusProxy *proxy, gchar *sender_name, gc
GVariant *results = NULL;
g_variant_get(parameters, "(u@a{sv})", &response, &results);
- if(response != 0 || !results)
+ if(response != 0 || !results) {
+ cu->callback(false, cu->userdata);
goto done;
+ }
gchar *session_handle = NULL;
if(g_variant_lookup(results, "session_handle", "s", &session_handle) && session_handle) {
cu->self->session_handle = strdup(session_handle);
cu->self->session_created = true;
- cu->callback(cu->userdata);
+ cu->callback(true, cu->userdata);
}
done: