diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2010-09-27 16:07:27 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2010-09-27 16:07:27 +0200 |
commit | bd7ae6d5a79991d7f65bc12091b61bcdc4bc5b49 (patch) | |
tree | 6f64ab14e1cc42cf88a79a9f49390f7f67594477 /src/gui/curses/gui-curses-window.c | |
parent | 91343167cdd144c1373bfd2551ff76021691a02b (diff) | |
download | weechat-bd7ae6d5a79991d7f65bc12091b61bcdc4bc5b49.zip |
Add new option weechat.look.input_share (task #9228)
Diffstat (limited to 'src/gui/curses/gui-curses-window.c')
-rw-r--r-- | src/gui/curses/gui-curses-window.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gui/curses/gui-curses-window.c b/src/gui/curses/gui-curses-window.c index aa2d0a1f3..10003758d 100644 --- a/src/gui/curses/gui-curses-window.c +++ b/src/gui/curses/gui-curses-window.c @@ -576,6 +576,12 @@ gui_window_switch_to_buffer (struct t_gui_window *window, window->buffer->lines->last_read_line = window->buffer->lines->last_line; } + if (CONFIG_BOOLEAN(config_look_input_share) + && (old_buffer != window->buffer)) + { + gui_input_move_to_buffer (old_buffer, window->buffer); + } + hook_signal_send ("buffer_switch", WEECHAT_HOOK_SIGNAL_POINTER, buffer); } @@ -608,6 +614,12 @@ gui_window_switch (struct t_gui_window *window) gui_window_switch_to_buffer (gui_current_window, gui_current_window->buffer, 1); + + if (CONFIG_BOOLEAN(config_look_input_share) + && (old_window->buffer != window->buffer)) + { + gui_input_move_to_buffer (old_window->buffer, window->buffer); + } } /* |