mirror of
https://github.com/weechat/weechat.git
synced 2026-06-30 14:56:39 +02:00
Fixed refresh problem (empty screen after resizing terminal to very small size, then normal size)
This commit is contained in:
@@ -95,8 +95,9 @@ gui_main_init ()
|
||||
|
||||
gui_infobar = NULL;
|
||||
|
||||
gui_ok = ((COLS > GUI_WINDOW_MIN_WIDTH) && (LINES > GUI_WINDOW_MIN_HEIGHT));
|
||||
|
||||
gui_ok = ((COLS >= GUI_WINDOW_MIN_WIDTH)
|
||||
&& (LINES >= GUI_WINDOW_MIN_HEIGHT));
|
||||
|
||||
refresh ();
|
||||
|
||||
/* init clipboard buffer */
|
||||
|
||||
@@ -1447,9 +1447,6 @@ gui_window_refresh_screen (int force)
|
||||
{
|
||||
int new_height, new_width;
|
||||
|
||||
if (!gui_ok)
|
||||
return;
|
||||
|
||||
if (force || (gui_window_refresh_needed == 1))
|
||||
{
|
||||
endwin ();
|
||||
@@ -1457,8 +1454,8 @@ gui_window_refresh_screen (int force)
|
||||
|
||||
getmaxyx (stdscr, new_height, new_width);
|
||||
|
||||
gui_ok = ((new_width > GUI_WINDOW_MIN_WIDTH)
|
||||
&& (new_height > GUI_WINDOW_MIN_HEIGHT));
|
||||
gui_ok = ((new_width >= GUI_WINDOW_MIN_WIDTH)
|
||||
&& (new_height >= GUI_WINDOW_MIN_HEIGHT));
|
||||
|
||||
if (gui_ok)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user