File 0006-Test-3-frames-for-freezes-by-default.patch of Package kwin5

From 550184274e79a832a8179b349b9b139066b5b946 Mon Sep 17 00:00:00 2001
From: Antonio Larrosa <larrosa@kde.org>
Date: Mon, 24 Oct 2016 16:47:50 +0200
Subject: [PATCH 6/7] Test 3 frames for freezes by default

I tested on a system with nouveau and testing for 3 frames seems to be
enough to detect the freeze. Note that this can be changed with
the environment variable KWIN_MAX_FRAMES_TESTED
---
 composite.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/composite.h b/composite.h
index c439148..a7aee56 100644
--- a/composite.h
+++ b/composite.h
@@ -239,7 +239,7 @@ private:
     Scene *m_scene;
     bool m_bufferSwapPending;
     bool m_composeAtSwapCompletion;
-    int m_framesToTestForSafety = 30;
+    int m_framesToTestForSafety = 3;
 
     KWIN_SINGLETON_VARIABLE(Compositor, s_compositor)
 };
-- 
2.10.1

openSUSE Build Service is sponsored by