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=959982icc-effect-5.14.5
parent
815c7c25a0
commit
1b728c3337
|
@ -179,7 +179,9 @@ void MagnifierEffect::mouseChanged( const QPoint& pos, const QPoint& old,
|
||||||
Qt::MouseButtons, Qt::MouseButtons, Qt::KeyboardModifiers, Qt::KeyboardModifiers )
|
Qt::MouseButtons, Qt::MouseButtons, Qt::KeyboardModifiers, Qt::KeyboardModifiers )
|
||||||
{
|
{
|
||||||
if( pos != old && zoom != 1 )
|
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
|
} // namespace
|
||||||
|
|
Loading…
Reference in New Issue