From ffe3f5788f12fe86a1c7bedf3a2672f3b98e5c3e Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 20 Nov 2001 03:35:23 +0000 Subject: [PATCH] When creating hidden windows in sticky split windows, they should go to the active split window, not to some other non-sticky window.. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2125 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-text/gui-windows.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fe-text/gui-windows.c b/src/fe-text/gui-windows.c index 4f0a8e48..5b248402 100644 --- a/src/fe-text/gui-windows.c +++ b/src/fe-text/gui-windows.c @@ -88,8 +88,8 @@ 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 (settings_get_bool("autostick_split_windows") && - automatic == NULL && (parent->sticky_windows || empty_window)) + if ((automatic == NULL && parent->sticky_windows) || + (empty_window && settings_get_bool("autostick_split_windows"))) gui_window_set_sticky(window); signal_emit("gui window created", 1, window);