add exit handler

This commit is contained in:
Leon Henrik Plickat
2024-01-06 23:55:10 +01:00
parent 2ccbfb2283
commit 732c1adb55
8 changed files with 48 additions and 2 deletions

View File

@@ -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)
{