mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 04:13:32 +02:00
Split windows created with /WINDOW SHOW are now sticky if
/SET autostick_split_windows is ON. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1506 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
2338954e8a
commit
c7d4b81069
1 changed files with 5 additions and 0 deletions
|
|
@ -24,6 +24,7 @@
|
|||
#include "commands.h"
|
||||
#include "levels.h"
|
||||
#include "misc.h"
|
||||
#include "settings.h"
|
||||
#include "printtext.h"
|
||||
|
||||
#include "screen.h"
|
||||
|
|
@ -683,6 +684,10 @@ static void cmd_window_show(const char *data)
|
|||
}
|
||||
|
||||
parent = mainwindow_create();
|
||||
if (settings_get_bool("autostick_split_windows")) {
|
||||
parent->sticky_windows =
|
||||
g_slist_append(parent->sticky_windows, window);
|
||||
}
|
||||
parent->active = window;
|
||||
gui_window_reparent(window, parent);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue