From 7dfb10b29e2465d19930e43853f42412077e05b6 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 20 Nov 2001 21:42:56 +0000 Subject: 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 --- src/fe-text/gui-windows.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/fe-text') 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); -- cgit v1.2.3