1
0
mirror of https://github.com/irssi/irssi.git synced 2024-06-30 06:45:25 +00:00

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
This commit is contained in:
Timo Sirainen 2001-11-20 03:35:23 +00:00 committed by cras
parent a715b8b9ab
commit ffe3f5788f

View File

@ -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);