summaryrefslogtreecommitdiff
path: root/rcm-client-main.c
diff options
context:
space:
mode:
Diffstat (limited to 'rcm-client-main.c')
-rw-r--r--rcm-client-main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/rcm-client-main.c b/rcm-client-main.c
index e3dcd04..9d6c4e1 100644
--- a/rcm-client-main.c
+++ b/rcm-client-main.c
@@ -10,6 +10,7 @@
#include "rcm-client-main.h"
#include "rcm-client-hardware-list.h"
#include "rcm-client-receive.h"
+#include "rcm-client-advanced.h"
#define WINDOW_WIDTH 300
#define WINDOW_HEIGHT 300
@@ -77,6 +78,7 @@ on_signal(GDBusObjectManagerClient *manager,
gchar *protocol;
guint64 scancode;
gchar *keycode;
+ gchar *event;
g_print("Signal %s received for obj %s\n", signal_name,
g_dbus_object_get_object_path(G_DBUS_OBJECT(object_proxy)));
@@ -90,6 +92,10 @@ on_signal(GDBusObjectManagerClient *manager,
rcng_client_receive_key_pressed(G_DBUS_OBJECT(object_proxy), protocol, scancode, keycode);
g_free(protocol);
g_free(keycode);
+ } else if (!strcmp(signal_name, "Event")) {
+ g_variant_get(parameters, "(s)", &event);
+ advanced_receive_event(event);
+ g_free(event);
}
}