From b424bb488160fc15a9aae838147a233ceb8b3083 Mon Sep 17 00:00:00 2001 From: Stone Tickle Date: Thu, 1 Oct 2020 19:52:51 +0900 Subject: [PATCH] fix Wayland window transparency https://github.com/glfw/glfw/issues/1434 --- profiler/src/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index 1d88caa2..43872d0e 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -244,7 +244,9 @@ int main( int argc, char** argv ) // Setup window glfwSetErrorCallback(glfw_error_callback); if( !glfwInit() ) return 1; -#ifndef DISPLAY_SERVER_WAYLAND +#ifdef DISPLAY_SERVER_WAYLAND + glfwWindowHint(GLFW_ALPHA_BITS, 0); +#else glfwWindowHint(GLFW_VISIBLE, 0); #endif glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);