From 241ebb9d035834b35ae988d1d838b52a69439a19 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 14 Mar 2025 12:54:15 +0100 Subject: Handle window background transparency correctly (premultiplied alpha) --- depends/mgl | 2 +- include/mglpp/window/Window.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/depends/mgl b/depends/mgl index b2c7f26..637d092 160000 --- a/depends/mgl +++ b/depends/mgl @@ -1 +1 @@ -Subproject commit b2c7f26283b1740debeff2d06939c05a4a804304 +Subproject commit 637d092f808c695e920d5955f6f56460ea847cd6 diff --git a/include/mglpp/window/Window.hpp b/include/mglpp/window/Window.hpp index c2d6cff..6bd77f8 100644 --- a/include/mglpp/window/Window.hpp +++ b/include/mglpp/window/Window.hpp @@ -51,7 +51,7 @@ namespace mgl { bool override_redirect = false; bool support_alpha = false; /* support alpha for the window */ bool hide_decorations = false; /* this is a hint, it may be ignored by the window manager */ - Color background_color = {0, 0, 0, 0}; + Color background_color = {0, 0, 0, 255}; const char *class_name = nullptr; mgl_window_type window_type = MGL_WINDOW_TYPE_NORMAL; WindowHandle transient_for_window = 0; /* 0 = none */ -- cgit v1.2.3-70-g09d2