|
i3
|
#include "all.h"#include <ev.h>#include <iconv.h>#include <signal.h>#include <sys/wait.h>#include <xcb/xcb_event.h>#include <X11/keysym.h>
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) |
| 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. More... | |
| void handle_signal | ( | int | sig, |
| siginfo_t * | info, | ||
| void * | data | ||
| ) |
Definition at line 303 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 342 of file sighandler.c.
References ELOG, and handle_signal().
Referenced by main().

|
static |
Definition at line 157 of file sighandler.c.
References xoutput::active, dialog_t::colormap, conn, create_window(), dialog_t::dialogs, 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 217 of file sighandler.c.
References dialog_t::colormap, conn, dialog_t::dialogs, 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 241 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, x, and y.
Referenced by sighandler_handle_expose().

|
static |
Definition at line 232 of file sighandler.c.
References conn, dialog_t::dialogs, sighandler_draw_dialog(), and TAILQ_FOREACH.
Referenced by handle_signal(), sighandler_create_dialogs(), and sighandler_handle_key_press().

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

|
static |
Definition at line 140 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 29 of file sighandler.c.
References DLOG, ELOG, FREE, sasprintf(), and start_argv.

1.8.13