Wayland: Fix for bug in NVIDIA drivers that prevents transparency working

Fixes #5479
This commit is contained in:
Kovid Goyal 2022-09-10 11:57:18 +05:30
parent 67d70f8b8f
commit 5ba887ff68
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 7 additions and 2 deletions

View File

@ -44,6 +44,8 @@ Detailed list of changes
- Sessions: Allow controlling which OS Window is active via the ``focus_os_window`` directive - Sessions: Allow controlling which OS Window is active via the ``focus_os_window`` directive
- Wayland: Fix for bug in NVIDIA drivers that prevents transparency working (:iss:`5479`)
0.26.2 [2022-09-05] 0.26.2 [2022-09-05]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

7
glfw/egl_context.c vendored
View File

@ -600,8 +600,11 @@ bool _glfwCreateContextEGL(_GLFWwindow* window,
if (_glfw.egl.KHR_gl_colorspace) if (_glfw.egl.KHR_gl_colorspace)
setAttrib(EGL_GL_COLORSPACE_KHR, EGL_GL_COLORSPACE_SRGB_KHR); setAttrib(EGL_GL_COLORSPACE_KHR, EGL_GL_COLORSPACE_SRGB_KHR);
} }
if (_glfw.egl.EXT_present_opaque) // Disabled because it prevents transparency from working on NVIDIA drivers under Wayland
setAttrib(EGL_PRESENT_OPAQUE_EXT, !fbconfig->transparent); // https://github.com/kovidgoyal/kitty/issues/5479
// We anyway dont use the alpha bits for anything.
/* if (_glfw.egl.EXT_present_opaque) */
/* setAttrib(EGL_PRESENT_OPAQUE_EXT, !fbconfig->transparent); */
setAttrib(EGL_NONE, EGL_NONE); setAttrib(EGL_NONE, EGL_NONE);