diff options
author | Timo Sirainen <cras@irssi.org> | 2001-11-20 21:42:56 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-11-20 21:42:56 +0000 |
commit | 7dfb10b29e2465d19930e43853f42412077e05b6 (patch) | |
tree | 7c667f91068555724967bf225dc17fe349be54b5 /src/fe-text/gui-windows.c | |
parent | d133a90eaa4e8c94ce193c9436373bea8088361f (diff) | |
download | irssi-7dfb10b29e2465d19930e43853f42412077e05b6.zip |
set only non-automatic windows sticky so that the windows irssi creates at
startup wont get sticky. also the check if split window was empty was wrong.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2135 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text/gui-windows.c')
-rw-r--r-- | src/fe-text/gui-windows.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/fe-text/gui-windows.c b/src/fe-text/gui-windows.c index 5b248402..9382d212 100644 --- a/src/fe-text/gui-windows.c +++ b/src/fe-text/gui-windows.c @@ -88,8 +88,11 @@ static void gui_window_created(WINDOW_REC *window, void *automatic) if (parent->active == NULL) parent->active = window; window->gui_data = gui_window_init(window, parent); - if ((automatic == NULL && parent->sticky_windows) || - (empty_window && settings_get_bool("autostick_split_windows"))) + /* set only non-automatic windows sticky so that the windows + irssi creates at startup wont get sticky. */ + if (automatic == NULL && + (parent->sticky_windows || + (new_parent && settings_get_bool("autostick_split_windows")))) gui_window_set_sticky(window); signal_emit("gui window created", 1, window); |