added popup for handling SIGSEGV or SIGFPE

the popup is placed on each of the virtual screens
the user can decide to restart or quit i3
in case of an exit a core-dump is generated
This commit is contained in:
Jan-Erik Rediger
2010-01-03 14:52:38 +01:00
committed by Michael Stapelberg
parent 715983024d
commit 614b360bd4
6 changed files with 300 additions and 45 deletions

View File

@ -49,6 +49,7 @@
#include "manage.h"
#include "ipc.h"
#include "log.h"
#include "sighandler.h"
xcb_connection_t *global_conn;
@ -499,6 +500,7 @@ int main(int argc, char *argv[], char *env[]) {
/* Handle the events which arrived until now */
xcb_check_cb(NULL, NULL, 0);
setup_signal_handler();
/* Ungrab the server to receive events and enter libevs eventloop */
xcb_ungrab_server(conn);
ev_loop(loop, 0);