Merge pull request #514 from psychon/quit_during_startup
Make awesome.quit() during startup work
This commit is contained in:
commit
4803e1552d
|
@ -621,9 +621,12 @@ main(int argc, char **argv)
|
|||
g_main_context_set_poll_func(g_main_context_default(), &a_glib_poll);
|
||||
gettimeofday(&last_wakeup, NULL);
|
||||
|
||||
/* main event loop */
|
||||
globalconf.loop = g_main_loop_new(NULL, FALSE);
|
||||
g_main_loop_run(globalconf.loop);
|
||||
/* main event loop (if not NULL, awesome.quit() was already called) */
|
||||
if (globalconf.loop == NULL)
|
||||
{
|
||||
globalconf.loop = g_main_loop_new(NULL, FALSE);
|
||||
g_main_loop_run(globalconf.loop);
|
||||
}
|
||||
g_main_loop_unref(globalconf.loop);
|
||||
globalconf.loop = NULL;
|
||||
|
||||
|
|
Loading…
Reference in New Issue