summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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)