From a360c31d0434898888e710f4a5f560200f50cecf Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Sun, 19 Apr 2026 18:47:49 +0100 Subject: errorOverlay: modernize, refactor, use GPU rendering (#14122) Improves the overlay's rendering: - GPU accelerated - supports gradients - wraps - cleaner code a bit --- src/Compositor.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/Compositor.cpp') diff --git a/src/Compositor.cpp b/src/Compositor.cpp index d9de5195..92f81fc6 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -72,7 +72,7 @@ #include "managers/WelcomeManager.hpp" #include "render/AsyncResourceGatherer.hpp" #include "plugins/PluginSystem.hpp" -#include "hyprerror/HyprError.hpp" +#include "errorOverlay/Overlay.hpp" #include "notification/NotificationOverlay.hpp" #include "debug/Overlay.hpp" #include "helpers/MonitorFrameScheduler.hpp" @@ -600,7 +600,7 @@ void CCompositor::cleanup() { Render::g_pShaderLoader.reset(); Config::mgr().reset(); g_layoutManager.reset(); - g_pHyprError.reset(); + ErrorOverlay::overlay().reset(); g_pKeybindManager.reset(); g_pXWaylandManager.reset(); g_pPointerManager.reset(); @@ -643,8 +643,8 @@ void CCompositor::initManagers(eManagersInitStage stage) { if (!Config::initConfigManager()) exit(1); - Log::logger->log(Log::DEBUG, "Creating the CHyprError!"); - g_pHyprError = makeUnique(); + Log::logger->log(Log::DEBUG, "Creating the Error Overlay!"); + ErrorOverlay::overlay(); Log::logger->log(Log::DEBUG, "Creating the LayoutManager!"); g_layoutManager = makeUnique(); -- cgit v1.2.3