diff --git a/src/fe-common/core/fe-windows.h b/src/fe-common/core/fe-windows.h index 11e1ffd1..1b22f5b9 100644 --- a/src/fe-common/core/fe-windows.h +++ b/src/fe-common/core/fe-windows.h @@ -17,6 +17,8 @@ typedef struct { int refnum; char *name; + int width, height; + GSList *items; WI_ITEM_REC *active; SERVER_REC *active_server; diff --git a/src/fe-text/gui-windows.c b/src/fe-text/gui-windows.c index 43a5b6a7..42eebfa8 100644 --- a/src/fe-text/gui-windows.c +++ b/src/fe-text/gui-windows.c @@ -54,6 +54,9 @@ static GUI_WINDOW_REC *gui_window_init(WINDOW_REC *window, MAIN_WINDOW_REC *pare { GUI_WINDOW_REC *gui; + window->width = COLS; + window->height = parent->lines; + gui = g_new0(GUI_WINDOW_REC, 1); gui->parent = parent; @@ -910,6 +913,9 @@ void gui_window_resize(WINDOW_REC *window, int ychange, int xchange) gui = WINDOW_GUI(window); + window->width = COLS; + window->height = gui->parent->lines; + if (xchange) { /* window width changed, we'll need to recalculate a few things.. */