mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 12:53:42 +02:00
added mainwindow_resize_freeze() and .._thaw() functions to temporarily
freeze all window resizes. It's now being used with statusbar code so changing between split windows don't make the screen jump around. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1860 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
a5b32b70a7
commit
17f4d6b5de
3 changed files with 77 additions and 47 deletions
|
|
@ -21,7 +21,10 @@ typedef struct {
|
|||
GSList *statusbars;
|
||||
int statusbar_lines_top;
|
||||
int statusbar_lines_bottom;
|
||||
int statusbar_lines; /* top+bottom */
|
||||
int statusbar_lines; /* top+bottom */
|
||||
|
||||
int resize_freeze_counter;
|
||||
unsigned int resize_needed:1; /* We'll need to resize the window, but haven't got around doing it just yet. */
|
||||
} MAIN_WINDOW_REC;
|
||||
|
||||
extern GSList *mainwindows;
|
||||
|
|
@ -50,6 +53,8 @@ void mainwindow_change_active(MAIN_WINDOW_REC *mainwin,
|
|||
int mainwindows_reserve_lines(int top, int bottom);
|
||||
int mainwindow_set_statusbar_lines(MAIN_WINDOW_REC *window,
|
||||
int top, int bottom);
|
||||
void mainwindow_resize_freeze(MAIN_WINDOW_REC *window);
|
||||
void mainwindow_resize_thaw(MAIN_WINDOW_REC *window);
|
||||
|
||||
GSList *mainwindows_get_sorted(int reverse);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue