diff --git a/libhyprcursor/hyprcursor.cpp b/libhyprcursor/hyprcursor.cpp index d28c6fa..5fb66a5 100644 --- a/libhyprcursor/hyprcursor.cpp +++ b/libhyprcursor/hyprcursor.cpp @@ -778,10 +778,11 @@ std::optional CHyprcursorImplementation::loadTheme() { if (SHAPE->images.empty()) return "meta invalid: no images for shape " + cursor.path().stem().string(); - SHAPE->directory = cursor.path().stem().string(); - SHAPE->hotspotX = meta.parsedData.hotspotX; - SHAPE->hotspotY = meta.parsedData.hotspotY; - SHAPE->resizeAlgo = stringToAlgo(meta.parsedData.resizeAlgo); + SHAPE->directory = cursor.path().stem().string(); + SHAPE->hotspotX = meta.parsedData.hotspotX; + SHAPE->hotspotY = meta.parsedData.hotspotY; + SHAPE->nominalSize = meta.parsedData.nominalSize; + SHAPE->resizeAlgo = stringToAlgo(meta.parsedData.resizeAlgo); zip_discard(zip); } diff --git a/libhyprcursor/meta.cpp b/libhyprcursor/meta.cpp index a5897ef..1ee9bb2 100644 --- a/libhyprcursor/meta.cpp +++ b/libhyprcursor/meta.cpp @@ -152,10 +152,10 @@ std::optional CMeta::parseHL() { return RESULT.getError(); } catch (const char* err) { return "failed parsing meta: " + std::string{err}; } - parsedData.hotspotX = std::any_cast(meta->getConfigValue("hotspot_x")); - parsedData.hotspotY = std::any_cast(meta->getConfigValue("hotspot_y")); - parsedData.hotspotY = std::any_cast(meta->getConfigValue("nominal_size")); - parsedData.resizeAlgo = std::any_cast(meta->getConfigValue("resize_algorithm")); + parsedData.hotspotX = std::any_cast(meta->getConfigValue("hotspot_x")); + parsedData.hotspotY = std::any_cast(meta->getConfigValue("hotspot_y")); + parsedData.nominalSize = std::any_cast(meta->getConfigValue("nominal_size")); + parsedData.resizeAlgo = std::any_cast(meta->getConfigValue("resize_algorithm")); return {}; } diff --git a/tests/full_rendering.cpp b/tests/full_rendering.cpp index b784ea1..728c4ce 100644 --- a/tests/full_rendering.cpp +++ b/tests/full_rendering.cpp @@ -17,7 +17,7 @@ int main(int argc, char** argv) { /* Create a manager. You can optionally pass a logger function. */ - Hyprcursor::CHyprcursorManager mgr(nullptr, logFunction); + Hyprcursor::CHyprcursorManager mgr("HyprBibataModernClassicSVG", logFunction); /* Manager could be invalid if no themes were found, or