diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2026-04-19 18:47:49 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-19 18:47:49 +0100 |
| commit | a360c31d0434898888e710f4a5f560200f50cecf (patch) | |
| tree | f68746c77b416654ec059f670e2e66af62581de3 /src/debug/HyprCtl.cpp | |
| parent | 889ee4f26d77ff0c36f5c4767ef0629371fd2c18 (diff) | |
errorOverlay: modernize, refactor, use GPU rendering (#14122)
Improves the overlay's rendering:
- GPU accelerated
- supports gradients
- wraps
- cleaner code a bit
Diffstat (limited to 'src/debug/HyprCtl.cpp')
| -rw-r--r-- | src/debug/HyprCtl.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp index 3f239cef..fd9cad75 100644 --- a/src/debug/HyprCtl.cpp +++ b/src/debug/HyprCtl.cpp @@ -42,7 +42,7 @@ using namespace Hyprutils::OS; #include "../config/shared/animation/AnimationTree.hpp" #include "../config/supplementary/ConfigDescriptions.hpp" #include "../managers/CursorManager.hpp" -#include "../hyprerror/HyprError.hpp" +#include "../errorOverlay/Overlay.hpp" #include "../devices/IPointer.hpp" #include "../devices/IKeyboard.hpp" #include "../devices/ITouch.hpp" @@ -1531,7 +1531,7 @@ static std::string dispatchSeterror(eHyprCtlOutputFormat format, std::string req std::string errorMessage = ""; if (vars.size() < 3) { - g_pHyprError->destroy(); + ErrorOverlay::overlay()->destroy(); if (vars.size() == 2 && !vars[1].contains("dis")) return "var 1 not color or disable"; @@ -1545,10 +1545,10 @@ static std::string dispatchSeterror(eHyprCtlOutputFormat format, std::string req errorMessage += vars[i] + ' '; if (errorMessage.empty()) { - g_pHyprError->destroy(); + ErrorOverlay::overlay()->destroy(); } else { errorMessage.pop_back(); // pop last space - g_pHyprError->queueCreate(errorMessage, COLOR); + ErrorOverlay::overlay()->queueCreate(errorMessage, COLOR); } return "ok"; |
