1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

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
This commit is contained in:
Timo Sirainen 2001-11-20 21:42:56 +00:00 committed by cras
parent d133a90eaa
commit 7dfb10b29e

View File

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