mirror of
https://github.com/hyprwm/hyprcursor.git
synced 2024-11-16 18:25:58 +01:00
parent
dfba774650
commit
7c3aa03dff
1 changed files with 1 additions and 1 deletions
|
@ -306,7 +306,7 @@ SCursorImageData** CHyprcursorManager::getShapesC(int& outSize, const char* shap
|
|||
// find nearest
|
||||
int leader = 13371337;
|
||||
for (auto& image : impl->loadedShapes[shape.get()].images) {
|
||||
if (std::abs((int)(image->side - info.size)) > leader)
|
||||
if (std::abs((int)(image->side - info.size)) > std::abs((int)(leader - info.size)))
|
||||
continue;
|
||||
|
||||
leader = image->side;
|
||||
|
|
Loading…
Reference in a new issue