|
|
|
@ -56,10 +56,10 @@ void Session::slotFocusChanged()
|
|
|
|
|
{
|
|
|
|
|
if (checkFocusWidget())
|
|
|
|
|
{
|
|
|
|
|
base_widget->setFocusProxy(base_widget->tqfocusWidget());
|
|
|
|
|
active_terminal = base_widget->tqfocusWidget();
|
|
|
|
|
int terminal_id = terminal_ids[base_widget->tqfocusWidget()];
|
|
|
|
|
slotTitleChange(base_widget->tqfocusWidget(),
|
|
|
|
|
base_widget->setFocusProxy(base_widget->focusWidget());
|
|
|
|
|
active_terminal = base_widget->focusWidget();
|
|
|
|
|
int terminal_id = terminal_ids[base_widget->focusWidget()];
|
|
|
|
|
slotTitleChange(base_widget->focusWidget(),
|
|
|
|
|
terminals[terminal_id]->title());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -67,7 +67,7 @@ void Session::slotFocusChanged()
|
|
|
|
|
int Session::activeTerminalId()
|
|
|
|
|
{
|
|
|
|
|
if (checkFocusWidget())
|
|
|
|
|
return terminal_ids[base_widget->tqfocusWidget()];
|
|
|
|
|
return terminal_ids[base_widget->focusWidget()];
|
|
|
|
|
else
|
|
|
|
|
return -1;
|
|
|
|
|
}
|
|
|
|
@ -403,7 +403,7 @@ void Session::slotLastTerminalClosed()
|
|
|
|
|
|
|
|
|
|
void Session::slotTitleChange(TQWidget* w, const TQString& title)
|
|
|
|
|
{
|
|
|
|
|
if (w == base_widget->tqfocusWidget())
|
|
|
|
|
if (w == base_widget->focusWidget())
|
|
|
|
|
{
|
|
|
|
|
session_title = title;
|
|
|
|
|
emit titleChanged( session_title);
|
|
|
|
@ -412,8 +412,8 @@ void Session::slotTitleChange(TQWidget* w, const TQString& title)
|
|
|
|
|
|
|
|
|
|
bool Session::checkFocusWidget()
|
|
|
|
|
{
|
|
|
|
|
if (base_widget->tqfocusWidget()
|
|
|
|
|
&& base_widget->tqfocusWidget()->isA(TQCString("TEWidget")))
|
|
|
|
|
if (base_widget->focusWidget()
|
|
|
|
|
&& base_widget->focusWidget()->isA(TQCString("TEWidget")))
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|