WindowMaker/WindowMaker-wmspec.c-findBestIcon.patch

12 lines
371 B
Diff

--- src/wmspec.c
+++ src/wmspec.c
@@ -401,7 +401,7 @@
* results in better overall aesthetics -Dan */
wanted = wPreferences.icon_size * wPreferences.icon_size;
- for (icon=NULL, distance=LONG_MAX, i=0L; i<items-1; ) {
+ for (icon=NULL, distance=wanted, i=0L; i<items-1; ) {
size = data[i] * data[i+1];
if (size==0)
break;