Trigger a full repaint when mouse moves in magnifier effect. This is a slight overhead but fast mouse movements caused artefacts as some change events were lost.
BUG: 187658 svn path=/trunk/KDE/kdebase/workspace/; revision=959982
This commit is contained in:
parent
815c7c25a0
commit
1b728c3337
1 changed files with 3 additions and 1 deletions
|
@ -179,7 +179,9 @@ void MagnifierEffect::mouseChanged( const QPoint& pos, const QPoint& old,
|
|||
Qt::MouseButtons, Qt::MouseButtons, Qt::KeyboardModifiers, Qt::KeyboardModifiers )
|
||||
{
|
||||
if( pos != old && zoom != 1 )
|
||||
effects->addRepaint( magnifierArea( old ).adjusted( -FRAME_WIDTH, -FRAME_WIDTH, FRAME_WIDTH, FRAME_WIDTH ));
|
||||
// need full repaint as we might lose some change events on fast mouse movements
|
||||
// see Bug 187658
|
||||
effects->addRepaintFull();
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
|
Loading…
Reference in a new issue