File tree Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -778,10 +778,11 @@ std::optional<std::string> CHyprcursorImplementation::loadTheme() {
778
778
if (SHAPE->images .empty ())
779
779
return " meta invalid: no images for shape " + cursor.path ().stem ().string ();
780
780
781
- SHAPE->directory = cursor.path ().stem ().string ();
782
- SHAPE->hotspotX = meta.parsedData .hotspotX ;
783
- SHAPE->hotspotY = meta.parsedData .hotspotY ;
784
- SHAPE->resizeAlgo = stringToAlgo (meta.parsedData .resizeAlgo );
781
+ SHAPE->directory = cursor.path ().stem ().string ();
782
+ SHAPE->hotspotX = meta.parsedData .hotspotX ;
783
+ SHAPE->hotspotY = meta.parsedData .hotspotY ;
784
+ SHAPE->nominalSize = meta.parsedData .nominalSize ;
785
+ SHAPE->resizeAlgo = stringToAlgo (meta.parsedData .resizeAlgo );
785
786
786
787
zip_discard (zip);
787
788
}
Original file line number Diff line number Diff line change @@ -152,10 +152,10 @@ std::optional<std::string> CMeta::parseHL() {
152
152
return RESULT.getError ();
153
153
} catch (const char * err) { return " failed parsing meta: " + std::string{err}; }
154
154
155
- parsedData.hotspotX = std::any_cast<Hyprlang::FLOAT>(meta->getConfigValue (" hotspot_x" ));
156
- parsedData.hotspotY = std::any_cast<Hyprlang::FLOAT>(meta->getConfigValue (" hotspot_y" ));
157
- parsedData.hotspotY = std::any_cast<Hyprlang::FLOAT>(meta->getConfigValue (" nominal_size" ));
158
- parsedData.resizeAlgo = std::any_cast<Hyprlang::STRING>(meta->getConfigValue (" resize_algorithm" ));
155
+ parsedData.hotspotX = std::any_cast<Hyprlang::FLOAT>(meta->getConfigValue (" hotspot_x" ));
156
+ parsedData.hotspotY = std::any_cast<Hyprlang::FLOAT>(meta->getConfigValue (" hotspot_y" ));
157
+ parsedData.nominalSize = std::any_cast<Hyprlang::FLOAT>(meta->getConfigValue (" nominal_size" ));
158
+ parsedData.resizeAlgo = std::any_cast<Hyprlang::STRING>(meta->getConfigValue (" resize_algorithm" ));
159
159
160
160
return {};
161
161
}
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ int main(int argc, char** argv) {
17
17
/*
18
18
Create a manager. You can optionally pass a logger function.
19
19
*/
20
- Hyprcursor::CHyprcursorManager mgr (nullptr , logFunction);
20
+ Hyprcursor::CHyprcursorManager mgr (" HyprBibataModernClassicSVG " , logFunction);
21
21
22
22
/*
23
23
Manager could be invalid if no themes were found, or
You can’t perform that action at this time.
0 commit comments