mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
/SET autostick_split_windows (default ON) - should we do /WINDOW STICK
ON to all new split windows and hidden windows that are created inside it. This hopefully makes it easier to use split windows. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1344 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
24e36e0081
commit
f56ddd872a
@ -113,6 +113,14 @@ static void gui_window_created(WINDOW_REC *window)
|
||||
}
|
||||
window_create_override = -1;
|
||||
|
||||
if (settings_get_bool("autostick_split_windows") &&
|
||||
(parent->sticky_windows != NULL ||
|
||||
(mainwindows->next != NULL && parent->active == NULL))) {
|
||||
/* set the window sticky */
|
||||
parent->sticky_windows =
|
||||
g_slist_append(parent->sticky_windows, window);
|
||||
}
|
||||
|
||||
if (parent->active == NULL) parent->active = window;
|
||||
window->gui_data = gui_window_init(window, parent);
|
||||
signal_emit("gui window created", 1, window);
|
||||
@ -1265,6 +1273,7 @@ static void read_settings(void)
|
||||
|
||||
void gui_windows_init(void)
|
||||
{
|
||||
settings_add_bool("lookandfeel", "autostick_split_windows", TRUE);
|
||||
settings_add_int("lookandfeel", "indent", 10);
|
||||
settings_add_str("lookandfeel", "prompt", "[$[.15]T] ");
|
||||
settings_add_str("lookandfeel", "prompt_window", "[$winname] ");
|
||||
|
Loading…
Reference in New Issue
Block a user