mirror of
https://github.com/irssi/irssi.git
synced 2024-10-27 05:20:20 -04:00
Split window fixes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1523 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
39d54da896
commit
3bc5752be6
@ -217,9 +217,10 @@ static MAIN_WINDOW_REC *mainwindow_find_unsticky(void)
|
|||||||
return active_mainwin;
|
return active_mainwin;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void signal_window_changed(WINDOW_REC *window, WINDOW_REC *old_window)
|
static void signal_window_changed(WINDOW_REC *window)
|
||||||
{
|
{
|
||||||
MAIN_WINDOW_REC *parent;
|
MAIN_WINDOW_REC *parent;
|
||||||
|
WINDOW_REC *old_window;
|
||||||
|
|
||||||
g_return_if_fail(window != NULL);
|
g_return_if_fail(window != NULL);
|
||||||
|
|
||||||
@ -245,11 +246,13 @@ static void signal_window_changed(WINDOW_REC *window, WINDOW_REC *old_window)
|
|||||||
}
|
}
|
||||||
gui_window_reparent(window, active_mainwin);
|
gui_window_reparent(window, active_mainwin);
|
||||||
}
|
}
|
||||||
active_mainwin->active = window;
|
|
||||||
|
|
||||||
if (old_window != NULL && !is_window_visible(old_window))
|
old_window = active_mainwin->active;
|
||||||
|
if (old_window != NULL)
|
||||||
textbuffer_view_set_window(WINDOW_GUI(old_window)->view, NULL);
|
textbuffer_view_set_window(WINDOW_GUI(old_window)->view, NULL);
|
||||||
|
|
||||||
|
active_mainwin->active = window;
|
||||||
|
|
||||||
textbuffer_view_set_window(WINDOW_GUI(window)->view,
|
textbuffer_view_set_window(WINDOW_GUI(window)->view,
|
||||||
parent->curses_win);
|
parent->curses_win);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user