[gnome-remote-desktop] rdp-event-queue: Always explicitly use global main context
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-remote-desktop] rdp-event-queue: Always explicitly use global main context
- Date: Thu, 14 Oct 2021 14:42:42 +0000 (UTC)
commit f70c3381db3ac218870a0e9ba9898de3cacb462f
Author: Pascal Nowack <Pascal Nowack gmx de>
Date: Mon Aug 23 19:10:13 2021 +0200
rdp-event-queue: Always explicitly use global main context
All D-Bus operations happen in the main thread, which is unlikely to
change.
So, explicitly use the global main context, as the threads default
GMainContext might not always be the global one.
src/grd-rdp-event-queue.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/grd-rdp-event-queue.c b/src/grd-rdp-event-queue.c
index cd03bbf..b18399a 100644
--- a/src/grd-rdp-event-queue.c
+++ b/src/grd-rdp-event-queue.c
@@ -356,7 +356,7 @@ grd_rdp_event_queue_new (GrdSessionRdp *session_rdp)
flush_source = g_source_new (&flush_source_funcs, sizeof (GSource));
g_source_set_callback (flush_source, flush_rdp_events, rdp_event_queue, NULL);
g_source_set_ready_time (flush_source, -1);
- g_source_attach (flush_source, g_main_context_get_thread_default ());
+ g_source_attach (flush_source, NULL);
rdp_event_queue->flush_source = flush_source;
return rdp_event_queue;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]