Use a more correct method to determine the foreground process in the terminal. Works properly with nested shells.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=661946
This commit is contained in:
Robert Knight
2007-05-07 04:14:32 +00:00
parent d7f197448f
commit 0ab65a6fe4
6 changed files with 33 additions and 6 deletions

View File

@@ -877,7 +877,10 @@ void Session::setSize(QSize size)
emit resizeSession(this, size);
}
int Session::foregroundPid() const
{
return _shellProcess->foregroundProcessGroup();
}
int Session::sessionPid() const
{
return _shellProcess->pid();