1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-28 20:23:51 +00:00

fix Wayland window transparency

https://github.com/glfw/glfw/issues/1434
This commit is contained in:
Stone Tickle 2020-10-01 19:52:51 +09:00
parent a4f83c55a6
commit b424bb4881
No known key found for this signature in database
GPG Key ID: 4DF34BD9C2622309

View File

@ -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);