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

--- Comment #1 from Thomas Lübking <thomas.luebk...@gmail.com> ---
Does this work for you?

diff --git a/eglonxbackend.cpp b/eglonxbackend.cpp
index 480e533..06e5a16 100644
--- a/eglonxbackend.cpp
+++ b/eglonxbackend.cpp
@@ -266,7 +266,7 @@ EGLSurface EglOnXBackend::createSurface(xcb_window_t
window)

 bool EglOnXBackend::initBufferConfigs()
 {
-    const EGLint config_attribs[] = {
+    EGLint config_attribs[] = {
         EGL_SURFACE_TYPE,        
EGL_WINDOW_BIT|EGL_SWAP_BEHAVIOR_PRESERVED_BIT,
         EGL_RED_SIZE,             1,
         EGL_GREEN_SIZE,           1,
@@ -280,8 +280,11 @@ bool EglOnXBackend::initBufferConfigs()
     EGLint count;
     EGLConfig configs[1024];
     if (eglChooseConfig(eglDisplay(), config_attribs, configs, 1024, &count)
== EGL_FALSE) {
-        qCCritical(KWIN_CORE) << "choose config failed";
-        return false;
+        config_attribs[1] = EGL_WINDOW_BIT;
+        if (eglChooseConfig(eglDisplay(), config_attribs, configs, 1024,
&count) == EGL_FALSE) {
+            qCCritical(KWIN_CORE) << "choose config failed";
+            return false;
+        }
     }

     ScopedCPointer<xcb_get_window_attributes_reply_t>
attribs(xcb_get_window_attributes_reply(m_connection,

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to