i3
sighandler.c File Reference
#include "all.h"
#include <signal.h>
#include <sys/wait.h>
#include <unistd.h>
Include dependency graph for sighandler.c:

Go to the source code of this file.

Data Structures

struct  dialog_t

Typedefs

typedef struct dialog_t dialog_t

Functions

static TAILQ_HEAD (dialogs_head, dialog_t)
static void sighandler_setup (void)
static void sighandler_create_dialogs (void)
static void sighandler_destroy_dialogs (void)
static void sighandler_handle_expose (void)
static void sighandler_draw_dialog (dialog_t *dialog)
static void sighandler_handle_key_press (xcb_key_press_event_t *event)
static void handle_signal (int sig, siginfo_t *info, void *data)
void setup_signal_handler (void)
 Configured a signal handler to gracefully handle crashes and allow the user to generate a backtrace and rescue their session.

Typedef Documentation

◆ dialog_t

typedef struct dialog_t dialog_t

Function Documentation

◆ handle_signal()

void handle_signal ( int sig,
siginfo_t * info,
void * data )
static

Definition at line 296 of file sighandler.c.

References conn, DLOG, handle_signal(), sighandler_create_dialogs(), sighandler_handle_expose(), sighandler_handle_key_press(), and sighandler_setup().

Referenced by handle_signal(), and setup_signal_handler().

Here is the call graph for this function:

◆ setup_signal_handler()

void setup_signal_handler ( void )

Configured a signal handler to gracefully handle crashes and allow the user to generate a backtrace and rescue their session.

Definition at line 335 of file sighandler.c.

References ELOG, handle_signal(), and setup_signal_handler().

Referenced by main(), and setup_signal_handler().

Here is the call graph for this function:

◆ sighandler_create_dialogs()

◆ sighandler_destroy_dialogs()

void sighandler_destroy_dialogs ( void )
static

◆ sighandler_draw_dialog()

◆ sighandler_handle_expose()

void sighandler_handle_expose ( void )
static

◆ sighandler_handle_key_press()

void sighandler_handle_key_press ( xcb_key_press_event_t * event)
static

◆ sighandler_setup()

void sighandler_setup ( void )
static

Definition at line 133 of file sighandler.c.

References config, Config::font, Font::height, i3string_from_utf8(), logical_px(), predict_text_width(), and sighandler_setup().

Referenced by handle_signal(), sighandler_setup(), and TAILQ_HEAD().

Here is the call graph for this function:

◆ TAILQ_HEAD()

TAILQ_HEAD ( dialogs_head ,
dialog_t  )
static