From: Dana Jansens Date: Fri, 14 Feb 2003 08:47:37 +0000 (+0000) Subject: use an icon smaller than the surface if possible X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=29d030cc3ed6ec86b324700ec4d4c2b863154e60;p=chaz%2Fopenbox use an icon smaller than the surface if possible --- diff --git a/src/client.cc b/src/client.cc index f9676e7c..2d7c246a 100644 --- a/src/client.cc +++ b/src/client.cc @@ -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)