1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-05 17:23:15 +02:00

When private window is created (another user is talking), WeeChat does not switch to this window

This commit is contained in:
Sebastien Helleu
2003-12-31 16:00:20 +00:00
parent 0708f1a571
commit fd3e94070a
26 changed files with 64 additions and 44 deletions
+1 -1
View File
@@ -1395,7 +1395,7 @@ gui_init ()
gui_init_colors ();
/* create a new window */
gui_current_window = gui_window_new (NULL, NULL /*0, 0, COLS, LINES*/);
gui_current_window = gui_window_new (NULL, NULL, 1 /*0, 0, COLS, LINES*/);
signal (SIGWINCH, gui_curses_resize_handler);
+1 -1
View File
@@ -625,7 +625,7 @@ gui_init ()
gtk_widget_show_all (gtk_main_window);
/* create a new window */
gui_current_window = gui_window_new (NULL, NULL /*0, 0, COLS, LINES*/);
gui_current_window = gui_window_new (NULL, NULL, 1 /*0, 0, COLS, LINES*/);
/* TODO: set gui_ready to 1 when Gtk display functions will be ok */
gui_ready = 1;
+5 -4
View File
@@ -52,7 +52,7 @@ t_gui_window *gui_current_window = NULL; /* pointer to current window */
*/
t_gui_window *
gui_window_new (void *server, void *channel
gui_window_new (void *server, void *channel, int switch_to_window
/*int x, int y, int width, int height*/)
{
t_gui_window *new_window;
@@ -114,7 +114,8 @@ gui_window_new (void *server, void *channel
new_window->ptr_history = NULL;
/* switch to new window */
gui_switch_to_window (new_window);
if (switch_to_window)
gui_switch_to_window (new_window);
/* add window to windows queue */
new_window->prev_window = last_gui_window;
@@ -126,7 +127,7 @@ gui_window_new (void *server, void *channel
new_window->next_window = NULL;
/* redraw whole screen */
gui_redraw_window (new_window);
gui_redraw_window (gui_current_window);
}
else
return NULL;
@@ -235,7 +236,7 @@ gui_window_free (t_gui_window *window)
/* always at least one window */
if (!gui_windows && create_new)
gui_window_new (NULL, NULL);
gui_window_new (NULL, NULL, 1);
}
/*
+1 -1
View File
@@ -189,7 +189,7 @@ extern t_gui_window *gui_current_window;
/* prototypes */
/* GUI independent functions */
extern t_gui_window *gui_window_new (void *, void * /*int, int, int, int*/); /* TODO: add coordinates and size */
extern t_gui_window *gui_window_new (void *, void *, int /*int, int, int, int*/); /* TODO: add coordinates and size */
extern void gui_window_clear (t_gui_window *);
extern void gui_window_clear_all ();
extern t_gui_line *gui_new_line (t_gui_window *);