aboutsummaryrefslogtreecommitdiff
path: root/src/client.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-12-30 19:50:22 +0100
committerMax Kellermann <max@duempel.org>2008-12-30 19:50:22 +0100
commitd40cf1652ddbab662c753217a61c8bfba03d07ce (patch)
tree2c1821d4f38b955313ff4652efe5656e97926909 /src/client.c
parenta3b0506cfd962d74fa11ad83bf3bee3c6b5663da (diff)
main: export the main_loop variable
Other libraries may need to access the main_loop reference, to add or remove events, or to call g_main_loop_quit().
Diffstat (limited to 'src/client.c')
-rw-r--r--src/client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client.c b/src/client.c
index 77fd6c89..c170b116 100644
--- a/src/client.c
+++ b/src/client.c
@@ -25,6 +25,7 @@
#include "main_notify.h"
#include "dlist.h"
#include "idle.h"
+#include "main.h"
#include "../config.h"
@@ -471,7 +472,7 @@ client_in_event(G_GNUC_UNUSED GIOChannel *source,
switch (ret) {
case COMMAND_RETURN_KILL:
client_close(client);
- g_main_loop_quit(NULL);
+ g_main_loop_quit(main_loop);
return false;
case COMMAND_RETURN_CLOSE: