|
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, handle_signal(), sighandler_create_dialogs(), sighandler_handle_expose(), sighandler_handle_key_press(), and sighandler_setup().
Referenced by handle_signal(), and 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().

|
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_create_dialogs(), 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(), sighandler_create_dialogs(), and TAILQ_HEAD().

|
static |
Definition at line 210 of file sighandler.c.
References dialog_t::colormap, conn, draw_util_surface_free(), dialog_t::id, sighandler_destroy_dialogs(), dialog_t::surface, TAILQ_EMPTY, TAILQ_FIRST, and TAILQ_REMOVE.
Referenced by sighandler_destroy_dialogs(), sighandler_handle_key_press(), and TAILQ_HEAD().

|
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, sighandler_draw_dialog(), dialog_t::surface, Rect::width, and y.
Referenced by sighandler_draw_dialog(), sighandler_handle_expose(), and TAILQ_HEAD().

|
static |
Definition at line 225 of file sighandler.c.
References conn, sighandler_draw_dialog(), sighandler_handle_expose(), and TAILQ_FOREACH.
Referenced by handle_signal(), sighandler_create_dialogs(), sighandler_handle_expose(), sighandler_handle_key_press(), and TAILQ_HEAD().

|
static |
Definition at line 270 of file sighandler.c.
References DLOG, i3_restart(), keysyms, sighandler_destroy_dialogs(), sighandler_handle_expose(), sighandler_handle_key_press(), and xcb_numlock_mask.
Referenced by handle_signal(), sighandler_handle_key_press(), and TAILQ_HEAD().

|
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().

|
static |
Definition at line 22 of file sighandler.c.
References sighandler_create_dialogs(), sighandler_destroy_dialogs(), sighandler_draw_dialog(), sighandler_handle_expose(), sighandler_handle_key_press(), sighandler_setup(), TAILQ_HEAD, and TAILQ_HEAD_INITIALIZER.
