mirror of
https://github.com/irssi/irssi.git
synced 2025-01-03 14:56:47 -05: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
@ -24,6 +24,7 @@
|
|||||||
#include "commands.h"
|
#include "commands.h"
|
||||||
#include "levels.h"
|
#include "levels.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
|
#include "settings.h"
|
||||||
#include "printtext.h"
|
#include "printtext.h"
|
||||||
|
|
||||||
#include "screen.h"
|
#include "screen.h"
|
||||||
@ -683,6 +684,10 @@ static void cmd_window_show(const char *data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
parent = mainwindow_create();
|
parent = mainwindow_create();
|
||||||
|
if (settings_get_bool("autostick_split_windows")) {
|
||||||
|
parent->sticky_windows =
|
||||||
|
g_slist_append(parent->sticky_windows, window);
|
||||||
|
}
|
||||||
parent->active = window;
|
parent->active = window;
|
||||||
gui_window_reparent(window, parent);
|
gui_window_reparent(window, parent);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user