aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2025-03-14 12:54:15 +0100
committerdec05eba <dec05eba@protonmail.com>2025-03-14 12:54:15 +0100
commit241ebb9d035834b35ae988d1d838b52a69439a19 (patch)
tree897e9553972c4c47eb33a03bebbf767ddeee6b4b
parent6341a8aa77761a94e6ef073bccd28f880ee61f95 (diff)
Handle window background transparency correctly (premultiplied alpha)HEADmaster
m---------depends/mgl0
-rw-r--r--include/mglpp/window/Window.hpp2
2 files changed, 1 insertions, 1 deletions
diff --git a/depends/mgl b/depends/mgl
-Subproject b2c7f26283b1740debeff2d06939c05a4a80430
+Subproject 637d092f808c695e920d5955f6f56460ea847cd
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 */