Prevent KWin from automatically disabling compositing when the user
changes the system time or timezone. BUG: 184607 svn path=/trunk/KDE/kdebase/workspace/; revision=986962
This commit is contained in:
parent
63ac56bbdc
commit
a20ba6a900
1 changed files with 7 additions and 0 deletions
|
@ -493,6 +493,13 @@ void Workspace::checkCompositePaintTime( int msec )
|
|||
{
|
||||
if( options->disableCompositingChecks )
|
||||
return;
|
||||
// Sanity check. QTime uses the system clock so if the user changes the time or
|
||||
// timezone our timer will return undefined results. Ideally we would use a system
|
||||
// clock independent timer but I am uncertain if Qt provides a nice wrapper for
|
||||
// one or not. As it's unlikely for a single paint to take 15 seconds it seems
|
||||
// like a good upper bound.
|
||||
if( msec < 0 || msec > 15000 )
|
||||
return;
|
||||
composite_paint_times.prepend( msec );
|
||||
bool tooslow = false;
|
||||
// If last 3 paints were way too slow, disable and warn.
|
||||
|
|
Loading…
Reference in a new issue