2008-03-19 02:04:21 +01:00
|
|
|
--- src/wmspec.c
|
|
|
|
+++ src/wmspec.c
|
2010-03-19 09:16:42 +01:00
|
|
|
@@ -402,7 +402,7 @@
|
2008-03-19 02:04:21 +01:00
|
|
|
* 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;
|