i3
|
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 struct dialog_t dialog_t |
|
static |
Definition at line 296 of file sighandler.c.
References conn, DLOG, sighandler_create_dialogs(), sighandler_handle_expose(), sighandler_handle_key_press(), and sighandler_setup().
Referenced by 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, and handle_signal().
Referenced by main().
|
static |
Definition at line 150 of file sighandler.c.
References xoutput::active, dialog_t::colormap, conn, create_window(), dialog_t::dims, draw_util_surface_init(), get_visualid_by_depth(), get_visualtype_by_id(), Rect::height, dialog_t::id, outputs, xoutput::rect, root, root_depth, root_screen, scalloc(), sighandler_handle_expose(), dialog_t::surface, TAILQ_FOREACH, TAILQ_INSERT_TAIL, Rect::width, Rect::x, XCURSOR_CURSOR_POINTER, and Rect::y.
Referenced by handle_signal().
|
static |
Definition at line 210 of file sighandler.c.
References dialog_t::colormap, conn, draw_util_surface_free(), dialog_t::id, dialog_t::surface, TAILQ_EMPTY, TAILQ_FIRST, and TAILQ_REMOVE.
Referenced by sighandler_handle_key_press().
|
static |
Definition at line 234 of file sighandler.c.
References config, dialog_t::dims, draw_util_clear_surface(), draw_util_hex_to_color(), draw_util_rectangle(), draw_util_text(), Config::font, Font::height, Rect::height, dialog_t::surface, Rect::width, and y.
Referenced by sighandler_handle_expose().
|
static |
Definition at line 225 of file sighandler.c.
References conn, sighandler_draw_dialog(), and TAILQ_FOREACH.
Referenced by handle_signal(), sighandler_create_dialogs(), and sighandler_handle_key_press().
|
static |
Definition at line 270 of file sighandler.c.
References DLOG, i3_restart(), keysyms, sighandler_destroy_dialogs(), sighandler_handle_expose(), and state.
Referenced by handle_signal().
|
static |
Definition at line 133 of file sighandler.c.
References config, Config::font, Font::height, i3string_from_utf8(), logical_px(), and predict_text_width().
Referenced by handle_signal().
|
static |
Definition at line 22 of file sighandler.c.