mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Redraw on SIGWINCH when screen size hasn't changed
Some programs and users send SIGWINCH as a request for the client to redraw in the event of session detachment/reattachment (e.g. abduco). A well-formed terminal will only send SIGWINCH when the window size has changed, so there is no need to optimise this case out.
This commit is contained in:
parent
b382bd1232
commit
10f6326649
@ -81,11 +81,9 @@ void term_resize_dirty(void)
|
||||
if (!term_get_size(&width, &height))
|
||||
width = height = -1;
|
||||
|
||||
if (height != term_height || width != term_width) {
|
||||
term_resize(width, height);
|
||||
mainwindows_resize(term_width, term_height);
|
||||
term_resize_final(width, height);
|
||||
}
|
||||
term_resize(width, height);
|
||||
mainwindows_resize(term_width, term_height);
|
||||
term_resize_final(width, height);
|
||||
}
|
||||
|
||||
#ifdef SIGWINCH
|
||||
|
Loading…
Reference in New Issue
Block a user