aboutsummaryrefslogtreecommitdiff
path: root/src/WindowState.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/WindowState.cc')
-rw-r--r--src/WindowState.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/WindowState.cc b/src/WindowState.cc
index 1e650d8..b2c76b0 100644
--- a/src/WindowState.cc
+++ b/src/WindowState.cc
@@ -170,6 +170,8 @@ void SizeHints::reset(const XSizeHints &sizehint) {
170 min_height = base_height; 170 min_height = base_height;
171} 171}
172 172
173namespace {
174
173void closestPointToAspect(unsigned int &ret_x, unsigned int &ret_y, 175void closestPointToAspect(unsigned int &ret_x, unsigned int &ret_y,
174 unsigned int point_x, unsigned int point_y, 176 unsigned int point_x, unsigned int point_y,
175 unsigned int aspect_x, unsigned int aspect_y) { 177 unsigned int aspect_x, unsigned int aspect_y) {
@@ -187,7 +189,9 @@ unsigned int increaseToMultiple(unsigned int val, unsigned int inc) {
187unsigned int decreaseToMultiple(unsigned int val, unsigned int inc) { 189unsigned int decreaseToMultiple(unsigned int val, unsigned int inc) {
188 return val % inc ? val - (val % inc) : val; 190 return val % inc ? val - (val % inc) : val;
189} 191}
190 192
193} // end of anonymous namespace
194
191/** 195/**
192 * Changes width and height to the nearest (lower) value 196 * Changes width and height to the nearest (lower) value
193 * that conforms to it's size hints. 197 * that conforms to it's size hints.