mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-21 22:06:21 +00:00
Move SIGWINCH handling to ui/core.c, ignore signal whilst resizing
This commit is contained in:
@@ -79,7 +79,6 @@ static gboolean cmd_result = TRUE;
|
||||
static void _inp_win_update_virtual(void);
|
||||
static int _inp_printable(const wint_t ch);
|
||||
static void _inp_win_handle_scroll(void);
|
||||
static void _inp_resize_signal_handler(int signal);
|
||||
static int _inp_offset_to_col(char *str, int offset);
|
||||
static void _inp_write(char *line, int offset);
|
||||
|
||||
@@ -125,8 +124,6 @@ create_input_window(void)
|
||||
rl_startup_hook = _inp_rl_startup_hook;
|
||||
rl_callback_handler_install(NULL, _inp_rl_linehandler);
|
||||
|
||||
signal(SIGWINCH, _inp_resize_signal_handler);
|
||||
|
||||
inp_win = newpad(1, INP_WIN_MAX);
|
||||
wbkgd(inp_win, theme_attrs(THEME_INPUT_TEXT));;
|
||||
keypad(inp_win, TRUE);
|
||||
@@ -311,12 +308,6 @@ _inp_offset_to_col(char *str, int offset)
|
||||
return col;
|
||||
}
|
||||
|
||||
static void
|
||||
_inp_resize_signal_handler(int signal)
|
||||
{
|
||||
ui_resize();
|
||||
}
|
||||
|
||||
static void
|
||||
_inp_win_handle_scroll(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user