[gnome-remote-desktop] session: Implement NotifyKeyboardKeycode()



commit 7e90baa72c0052fdb75688ab51e6a611b4fac33d
Author: Pascal Nowack <Pascal Nowack gmx de>
Date:   Sun Feb 14 14:47:47 2021 +0100

    session: Implement NotifyKeyboardKeycode()

 src/grd-session.c | 16 ++++++++++++++++
 src/grd-session.h |  4 ++++
 2 files changed, 20 insertions(+)
---
diff --git a/src/grd-session.c b/src/grd-session.c
index ed8a871..69f3819 100644
--- a/src/grd-session.c
+++ b/src/grd-session.c
@@ -110,6 +110,22 @@ grd_session_stop (GrdSession *session)
   g_signal_emit (session, signals[STOPPED], 0);
 }
 
+void
+grd_session_notify_keyboard_keycode (GrdSession  *session,
+                                     uint32_t     keycode,
+                                     GrdKeyState  state)
+{
+  GrdSessionPrivate *priv = grd_session_get_instance_private (session);
+  GrdDBusRemoteDesktopSession *session_proxy = priv->remote_desktop_session;
+
+  grd_dbus_remote_desktop_session_call_notify_keyboard_keycode (session_proxy,
+                                                                keycode,
+                                                                state,
+                                                                NULL,
+                                                                NULL,
+                                                                NULL);
+}
+
 void
 grd_session_notify_keyboard_keysym (GrdSession *session,
                                     uint32_t    keysym,
diff --git a/src/grd-session.h b/src/grd-session.h
index 7ecbaaf..e3e1c11 100644
--- a/src/grd-session.h
+++ b/src/grd-session.h
@@ -71,6 +71,10 @@ struct _GrdSessionClass
 
 GrdContext *grd_session_get_context (GrdSession *session);
 
+void grd_session_notify_keyboard_keycode (GrdSession  *session,
+                                          uint32_t     keycode,
+                                          GrdKeyState  state);
+
 void grd_session_notify_keyboard_keysym (GrdSession  *session,
                                          uint32_t     keysym,
                                          GrdKeyState  state);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]