add exit handler
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#include "ext-idle-notify-v1.h"
|
||||
|
||||
#include "load-script.h"
|
||||
#include "call-exit-handler.h"
|
||||
#include "riverguile.h"
|
||||
#include "output.h"
|
||||
#include "seat.h"
|
||||
@@ -346,6 +347,9 @@ int main(int argc, char *argv[])
|
||||
if ( setjmp(skip_main_loop) == 0 )
|
||||
while ( context.loop && wl_display_dispatch(context.wl_display) > 0 );
|
||||
|
||||
if ( context.exit_handler != NULL )
|
||||
call_exit_handler();
|
||||
|
||||
struct Idle *idle, *tmp_i;
|
||||
wl_list_for_each_safe(idle, tmp_i, &context.unconfigured_idles, link)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user