]> Dogcows Code - chaz/openbox/commitdiff
use an icon smaller than the surface if possible
authorDana Jansens <danakj@orodu.net>
Fri, 14 Feb 2003 08:47:37 +0000 (08:47 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 14 Feb 2003 08:47:37 +0000 (08:47 +0000)
src/client.cc

index f9676e7cf7eebd3bbb8cc87722d5f84cb80c7cb5..2d7c246ae13e77ebf64f21efbf2ec969375f23bf 100644 (file)
@@ -1237,9 +1237,9 @@ const Icon *Client::icon(const otk::Size &s) const
       li = i;
     }
   }
-  if (smallest == 0xffffffff) // didnt find one bigger than us...
-    return &_icons[li];
-  return &_icons[si];
+  if (largest == 0) // didnt find one smaller than the requested size
+    return &_icons[si];
+  return &_icons[li];
 }
 
 void Client::move(int x, int y)
This page took 0.025421 seconds and 4 git commands to generate.