Allow the scrolling optimisation to work on regions of the display instead of the whole screen. This makes it work with split/screen vi/Screen etc. Doesn't work with applications that use vertical splits.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=668839
This commit is contained in:
Robert Knight
2007-05-27 21:26:42 +00:00
parent 39cce65b1d
commit e7f1b7904a
10 changed files with 172 additions and 148 deletions

View File

@@ -196,6 +196,11 @@ void ScreenWindow::resetScrollCount()
_scrollCount = 0;
}
QRect ScreenWindow::scrollRegion() const
{
return _screen->lastScrolledRegion();
}
void ScreenWindow::notifyOutputChanged()
{
// move window to the bottom of the screen and update scroll count