mirror of
https://github.com/KDE/konsole.git
synced 2026-05-18 19:47:16 -04:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user