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) --- include/mglpp/window/Window.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') 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