From f01e3043b81d1ad7d886f0502b445bdf3cea0ccc Mon Sep 17 00:00:00 2001 From: s1dd <140317709+nots1dd@users.noreply.github.com> Date: Fri, 9 May 2025 00:31:49 +0530 Subject: desktop: cleanup code and use std::ranges (#10289) --- src/desktop/Window.hpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/desktop/Window.hpp') diff --git a/src/desktop/Window.hpp b/src/desktop/Window.hpp index abc2747f..47d28db2 100644 --- a/src/desktop/Window.hpp +++ b/src/desktop/Window.hpp @@ -6,8 +6,6 @@ #include "../config/ConfigDataValues.hpp" #include "../helpers/AnimatedVariable.hpp" -#include "../helpers/math/Math.hpp" -#include "../helpers/signal/Signal.hpp" #include "../helpers/TagKeeper.hpp" #include "../macros.hpp" #include "../managers/XWaylandManager.hpp" @@ -79,9 +77,9 @@ struct SAlphaValue { }; struct SWindowData { - CWindowOverridableVar alpha = SAlphaValue{1.f, false}; - CWindowOverridableVar alphaInactive = SAlphaValue{1.f, false}; - CWindowOverridableVar alphaFullscreen = SAlphaValue{1.f, false}; + CWindowOverridableVar alpha = SAlphaValue{.alpha = 1.f, .overridden = false}; + CWindowOverridableVar alphaInactive = SAlphaValue{.alpha = 1.f, .overridden = false}; + CWindowOverridableVar alphaFullscreen = SAlphaValue{.alpha = 1.f, .overridden = false}; CWindowOverridableVar allowsInput = false; CWindowOverridableVar dimAround = false; -- cgit v1.2.3