diff options
author | Timo Sirainen <cras@irssi.org> | 2001-03-04 05:46:09 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-03-04 05:46:09 +0000 |
commit | f56ddd872a5c5b6cc5af40796e09c67a7df7323d (patch) | |
tree | 73412e5a4b947868453a0d02badb50c36f5d9126 /src/fe-text | |
parent | 24e36e008111337c12a50aae0c8614947520d828 (diff) | |
download | irssi-f56ddd872a5c5b6cc5af40796e09c67a7df7323d.zip |
/SET autostick_split_windows (default ON) - should we do /WINDOW STICK
ON to all new split windows and hidden windows that are created inside
it. This hopefully makes it easier to use split windows.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1344 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text')
-rw-r--r-- | src/fe-text/gui-windows.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/fe-text/gui-windows.c b/src/fe-text/gui-windows.c index 1655fbe8..2a02dff2 100644 --- a/src/fe-text/gui-windows.c +++ b/src/fe-text/gui-windows.c @@ -113,6 +113,14 @@ static void gui_window_created(WINDOW_REC *window) } window_create_override = -1; + if (settings_get_bool("autostick_split_windows") && + (parent->sticky_windows != NULL || + (mainwindows->next != NULL && parent->active == NULL))) { + /* set the window sticky */ + parent->sticky_windows = + g_slist_append(parent->sticky_windows, window); + } + if (parent->active == NULL) parent->active = window; window->gui_data = gui_window_init(window, parent); signal_emit("gui window created", 1, window); @@ -1265,6 +1273,7 @@ static void read_settings(void) void gui_windows_init(void) { + settings_add_bool("lookandfeel", "autostick_split_windows", TRUE); settings_add_int("lookandfeel", "indent", 10); settings_add_str("lookandfeel", "prompt", "[$[.15]T] "); settings_add_str("lookandfeel", "prompt_window", "[$winname] "); |