From 1cad2d80137b8d8cc279aa28df9d8ffaf6fbb895 Mon Sep 17 00:00:00 2001 From: Maxim Solovyov Date: Mon, 29 Jul 2024 21:16:43 +0300 Subject: [PATCH] backend/glx: don't require the root visual to have stencil buffer we're not using the stencil buffer and this requirement breaks picom in certain environments. --- src/backend/gl/glx.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/backend/gl/glx.c b/src/backend/gl/glx.c index da6e0b1c65..b15f5c96c6 100644 --- a/src/backend/gl/glx.c +++ b/src/backend/gl/glx.c @@ -254,11 +254,6 @@ static backend_t *glx_init(session_t *ps, xcb_window_t target) { goto end; } - if (glXGetConfig(ps->c.dpy, pvis, GLX_STENCIL_SIZE, &value) || !value) { - log_error("Root visual lacks stencil buffer."); - goto end; - } - if (glXGetConfig(ps->c.dpy, pvis, GLX_DOUBLEBUFFER, &value) || !value) { log_error("Root visual is not a double buffered GL visual."); goto end;