[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [kwin] [Bug 344326] Black or corrupted screen on resume from suspend
From:       Thomas Lübking <thomas.luebking () gmail ! com>
Date:       2015-02-28 21:56:44
Message-ID: bug-344326-17878-jKfuPFxEzC () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=344326

--- Comment #29 from Thomas Lübking <thomas.luebking@gmail.com> ---
"Interestingly" I gest some screen corruption w/ changing the amout of screens
on KF5.

I wonder whether it's the same issue and, depending on the HW/setup, the wake
from STR implies a screen (size) change as well.

This patch "mostly"* resolves it.


diff --git a/scene_opengl.cpp b/scene_opengl.cpp
index 7584dd5..de7b7a9 100644
--- a/scene_opengl.cpp
+++ b/scene_opengl.cpp
@@ -839,7 +839,9 @@ void SceneOpenGL::screenGeometryChanged(const QSize &size)
     m_backend->screenGeometryChanged(size);
     ShaderManager::setVirtualScreenSize(size);
     GLRenderTarget::setVirtualScreenSize(size);
-    GLVertexBuffer::setVirtualScreenSize(size);
+    GLVertexBuffer::cleanup();
+    GLVertexBuffer::initStatic();
+//     GLVertexBuffer::setVirtualScreenSize(size);
     ShaderManager::instance()->resetAllShaders();
 }

* The change takes quite long. During that time the screen is black + mouse
cursor but after a few seconds (~10?) I get a normal desktop.

-- 
You are receiving this mail because:
You are watching all bug changes.=
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic