diff options
author | Timo Sirainen <cras@irssi.org> | 2001-05-18 14:54:02 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-05-18 14:54:02 +0000 |
commit | c7d4b81069f9e68a2b8004ef07f49d8a78185353 (patch) | |
tree | bd0da6e780c6b51304e94e302b10fe76a83505dd /src/fe-text | |
parent | 2338954e8a98dd6c0df15451d0a187911929b209 (diff) | |
download | irssi-c7d4b81069f9e68a2b8004ef07f49d8a78185353.zip |
Split windows created with /WINDOW SHOW are now sticky if
/SET autostick_split_windows is ON.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1506 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text')
-rw-r--r-- | src/fe-text/mainwindows.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/fe-text/mainwindows.c b/src/fe-text/mainwindows.c index 504017b1..d727464e 100644 --- a/src/fe-text/mainwindows.c +++ b/src/fe-text/mainwindows.c @@ -24,6 +24,7 @@ #include "commands.h" #include "levels.h" #include "misc.h" +#include "settings.h" #include "printtext.h" #include "screen.h" @@ -683,6 +684,10 @@ static void cmd_window_show(const char *data) } parent = mainwindow_create(); + if (settings_get_bool("autostick_split_windows")) { + parent->sticky_windows = + g_slist_append(parent->sticky_windows, window); + } parent->active = window; gui_window_reparent(window, parent); |