diff options
Diffstat (limited to 'src/perl/ui')
-rw-r--r-- | src/perl/ui/Window.xs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/perl/ui/Window.xs b/src/perl/ui/Window.xs index debc767c..b40cd464 100644 --- a/src/perl/ui/Window.xs +++ b/src/perl/ui/Window.xs @@ -165,8 +165,13 @@ void command(window, cmd) Irssi::UI::Window window char *cmd +PREINIT: + WINDOW_REC *old; CODE: + old = active_win; + active_win = window; perl_command(cmd, window->active_server, window->active); + active_win = old; void window_item_add(window, item, automatic) |