summaryrefslogtreecommitdiff
path: root/src/client.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-02-14 08:47:37 +0000
committerDana Jansens <danakj@orodu.net>2003-02-14 08:47:37 +0000
commit29d030cc3ed6ec86b324700ec4d4c2b863154e60 (patch)
treef94d5fe6c3c513f69494f096d9df2c3fec1e3aec /src/client.cc
parent0b466d7136f0dbfbd3cf82323aaf21a4b947f67a (diff)
use an icon smaller than the surface if possible
Diffstat (limited to 'src/client.cc')
-rw-r--r--src/client.cc6
1 files changed, 3 insertions, 3 deletions
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)