summaryrefslogtreecommitdiff
path: root/src/fe-text/mainwindows.h
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-10-20 14:30:20 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-10-20 14:30:20 +0000
commit17f4d6b5de3a2a753091fcea39f63151183b5a30 (patch)
treef049431a12da77fd32ba7ffdd031e7b68c3f1329 /src/fe-text/mainwindows.h
parenta5b32b70a7db8ce41a37d9ee6fdef85300130351 (diff)
downloadirssi-17f4d6b5de3a2a753091fcea39f63151183b5a30.zip
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
Diffstat (limited to 'src/fe-text/mainwindows.h')
-rw-r--r--src/fe-text/mainwindows.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/fe-text/mainwindows.h b/src/fe-text/mainwindows.h
index 6850fe09..4021b8f1 100644
--- a/src/fe-text/mainwindows.h
+++ b/src/fe-text/mainwindows.h
@@ -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);