[gnome-remote-desktop] session-rdp: Simplify unicode-input implementation a bit
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-remote-desktop] session-rdp: Simplify unicode-input implementation a bit
- Date: Thu, 4 Mar 2021 18:03:17 +0000 (UTC)
commit 6d09fa0a9eb90e83aabf7a85cd4cc44f8c62dd52
Author: Pascal Nowack <Pascal Nowack gmx de>
Date: Mon Feb 15 19:42:46 2021 +0100
session-rdp: Simplify unicode-input implementation a bit
Since the introduction of the RdpEventQueue, notify_keysym_released()
doesn't need the variable 'session' any more.
So, get rid of it.
src/grd-session-rdp.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/src/grd-session-rdp.c b/src/grd-session-rdp.c
index fef9345..2f4d221 100644
--- a/src/grd-session-rdp.c
+++ b/src/grd-session-rdp.c
@@ -1113,8 +1113,7 @@ notify_keysym_released (gpointer key,
gpointer value,
gpointer user_data)
{
- GrdSession *session = (GrdSession *) user_data;
- GrdSessionRdp *session_rdp = GRD_SESSION_RDP (session);
+ GrdSessionRdp *session_rdp = user_data;
GrdRdpEventQueue *rdp_event_queue = session_rdp->rdp_event_queue;
xkb_keysym_t keysym = GPOINTER_TO_UINT (key);
@@ -1131,7 +1130,6 @@ rdp_input_synchronize_event (rdpInput *rdp_input,
{
RdpPeerContext *rdp_peer_context = (RdpPeerContext *) rdp_input->context;
GrdSessionRdp *session_rdp = rdp_peer_context->session_rdp;
- GrdSession *session = GRD_SESSION (session_rdp);
if (!is_rdp_peer_flag_set (rdp_peer_context, RDP_PEER_ACTIVATED))
return TRUE;
@@ -1142,7 +1140,7 @@ rdp_input_synchronize_event (rdpInput *rdp_input,
g_hash_table_foreach_remove (session_rdp->pressed_unicode_keys,
notify_keysym_released,
- session);
+ session_rdp);
return TRUE;
}
@@ -1799,7 +1797,7 @@ grd_session_rdp_stop (GrdSession *session)
session_rdp);
g_hash_table_foreach_remove (session_rdp->pressed_unicode_keys,
notify_keysym_released,
- session);
+ session_rdp);
g_clear_object (&session_rdp->rdp_event_queue);
g_clear_pointer (&session_rdp->last_frame, g_free);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]