From 65507c093f0fe091b052523008b644993f1cd8f7 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Mon, 8 Apr 2024 11:46:28 +0100 Subject: [PATCH] lib: fix missing overrides ref #27 --- libhyprcursor/hyprcursor.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libhyprcursor/hyprcursor.cpp b/libhyprcursor/hyprcursor.cpp index 55e1b5b..23f805f 100644 --- a/libhyprcursor/hyprcursor.cpp +++ b/libhyprcursor/hyprcursor.cpp @@ -653,6 +653,8 @@ std::optional CHyprcursorImplementation::loadTheme() { SHAPE->images.push_back(SCursorImage{i.file, i.size, i.delayMs}); } + SHAPE->overrides = meta.parsedData.overrides; + for (auto& i : SHAPE->images) { if (SHAPE->shapeType == SHAPE_INVALID) { if (i.filename.ends_with(".svg")) @@ -695,7 +697,7 @@ std::optional CHyprcursorImplementation::loadTheme() { IMAGE->cairoSurface = cairo_image_surface_create_from_png_stream(::readPNG, IMAGE); if (const auto STATUS = cairo_surface_status(IMAGE->cairoSurface); STATUS != CAIRO_STATUS_SUCCESS) { - delete[] (char*)IMAGE->data; + delete[](char*) IMAGE->data; IMAGE->data = nullptr; return "Failed reading cairoSurface, status " + std::to_string((int)STATUS); }