aboutsummaryrefslogtreecommitdiff
path: root/src/WinClientUtil.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/WinClientUtil.cc')
-rw-r--r--src/WinClientUtil.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/WinClientUtil.cc b/src/WinClientUtil.cc
index 112360d..a6460a2 100644
--- a/src/WinClientUtil.cc
+++ b/src/WinClientUtil.cc
@@ -9,8 +9,8 @@ void maxSize(const FluxboxWindow::ClientList &clients,
9 unsigned int &max_width, unsigned int &max_height) { 9 unsigned int &max_width, unsigned int &max_height) {
10 FluxboxWindow::ClientList::const_iterator it = clients.begin(); 10 FluxboxWindow::ClientList::const_iterator it = clients.begin();
11 FluxboxWindow::ClientList::const_iterator it_end = clients.end(); 11 FluxboxWindow::ClientList::const_iterator it_end = clients.end();
12 max_width = ~0; // unlimited 12 max_width = (unsigned int) ~0; // unlimited
13 max_height = ~0; // unlimited 13 max_height = (unsigned int) ~0; // unlimited
14 for (; it != it_end; ++it) { 14 for (; it != it_end; ++it) {
15 // special case for max height/width == 0 15 // special case for max height/width == 0
16 // 0 indicates unlimited size, so we skip them 16 // 0 indicates unlimited size, so we skip them
@@ -21,9 +21,9 @@ void maxSize(const FluxboxWindow::ClientList &clients,
21 max_width = std::min( (*it)->maxWidth(), max_width ); 21 max_width = std::min( (*it)->maxWidth(), max_width );
22 } 22 }
23 23
24 if (max_width == ~0) 24 if (max_width == (unsigned int) ~0)
25 max_width = 0; 25 max_width = 0;
26 if (max_height == ~0) 26 if (max_height == (unsigned int) ~0)
27 max_height = 0; 27 max_height = 0;
28} 28}
29 29