59351d6e18
Copy from X11:windowmanagers/WindowMaker based on submit request 35085 from user coolo OBS-URL: https://build.opensuse.org/request/show/35085 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/WindowMaker?expand=0&rev=14
12 lines
371 B
Diff
12 lines
371 B
Diff
--- src/wmspec.c
|
|
+++ src/wmspec.c
|
|
@@ -402,7 +402,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;
|