summaryrefslogtreecommitdiffstats
path: root/src/gui/platform/unix/qeventdispatcher_glib.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/platform/unix/qeventdispatcher_glib.cpp')
-rw-r--r--src/gui/platform/unix/qeventdispatcher_glib.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/platform/unix/qeventdispatcher_glib.cpp b/src/gui/platform/unix/qeventdispatcher_glib.cpp
index eaa27de25c..bf9e31990e 100644
--- a/src/gui/platform/unix/qeventdispatcher_glib.cpp
+++ b/src/gui/platform/unix/qeventdispatcher_glib.cpp
@@ -88,8 +88,11 @@ QPAEventDispatcherGlibPrivate::QPAEventDispatcherGlibPrivate(GMainContext *conte
: QEventDispatcherGlibPrivate(context)
{
Q_Q(QPAEventDispatcherGlib);
- userEventSource = reinterpret_cast<GUserEventSource *>(g_source_new(&userEventSourceFuncs,
- sizeof(GUserEventSource)));
+
+ GSource *source = g_source_new(&userEventSourceFuncs, sizeof(GUserEventSource));
+ g_source_set_name(source, "[Qt] GUserEventSource");
+ userEventSource = reinterpret_cast<GUserEventSource *>(source);
+
userEventSource->q = q;
userEventSource->d = this;
g_source_set_can_recurse(&userEventSource->source, true);