From bec02ef6a0cc27527f67a0987dd2e3f401da0543 Mon Sep 17 00:00:00 2001 From: Nikos Tsipinakis Date: Wed, 2 May 2018 21:25:08 +0300 Subject: [PATCH] Fix wrong return value in x11 event dispatch According to glib docs the dispatch function should be G_SOURCE_REMOVE or G_SOURCE_CONTINUE. Since this was worked properly until now I assume we were lucky enough that true == G_SOURCE_CONTINUE but it may not always be the case. --- src/x11/x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/x11/x.c b/src/x11/x.c index 010a779..731986c 100644 --- a/src/x11/x.c +++ b/src/x11/x.c @@ -253,7 +253,7 @@ gboolean x_mainloop_fd_dispatch(GSource *source, GSourceFunc callback, gpointer break; } } - return true; + return G_SOURCE_CONTINUE; } /*