WindowMaker/WindowMaker-wmspec.c-findBestIcon.patch
OBS User autobuild 59351d6e18 Accepting request 35085 from X11:windowmanagers
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
2010-03-19 08:16:42 +00:00

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;