aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2012-10-04 07:56:15 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2012-10-04 07:56:15 (GMT)
commite8f2e964c6a88e357bbc09b66cd3490cf9eed5ef (patch)
tree4ac71a45890d5b82c25f85ce374c3095fe89706f
parent391712b9805eda9d56a100f49d69b38863910565 (diff)
downloadfluxbox-e8f2e964c6a88e357bbc09b66cd3490cf9eed5ef.zip
fluxbox-e8f2e964c6a88e357bbc09b66cd3490cf9eed5ef.tar.bz2
minor cosmetic
-rw-r--r--src/Window.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Window.cc b/src/Window.cc
index 0b8d1e5..2cf776e 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -254,7 +254,7 @@ private:
254 254
255// Helper class for getResizeDirection below 255// Helper class for getResizeDirection below
256// Tests whether a point is on an edge or the corner. 256// Tests whether a point is on an edge or the corner.
257struct TestEdgeHelper { 257struct TestCornerHelper {
258 int corner_size_px, corner_size_pc; 258 int corner_size_px, corner_size_pc;
259 inline bool operator()(int xy, int wh) 259 inline bool operator()(int xy, int wh)
260 { 260 {
@@ -3035,16 +3035,16 @@ FluxboxWindow::ReferenceCorner FluxboxWindow::getResizeDirection(int x, int y,
3035 int h = frame().height(); 3035 int h = frame().height();
3036 int cx = w / 2; 3036 int cx = w / 2;
3037 int cy = h / 2; 3037 int cy = h / 2;
3038 TestEdgeHelper test_edge = { corner_size_px, corner_size_pc }; 3038 TestCornerHelper test_corner = { corner_size_px, corner_size_pc };
3039 if (x < cx && test_edge(x, cx)) { 3039 if (x < cx && test_corner(x, cx)) {
3040 if (y < cy && test_edge(y, cy)) 3040 if (y < cy && test_corner(y, cy))
3041 return LEFTTOP; 3041 return LEFTTOP;
3042 else if (test_edge(h - y - 1, h - cy)) 3042 else if (test_corner(h - y - 1, h - cy))
3043 return LEFTBOTTOM; 3043 return LEFTBOTTOM;
3044 } else if (test_edge(w - x - 1, w - cx)) { 3044 } else if (test_corner(w - x - 1, w - cx)) {
3045 if (y < cy && test_edge(y, cy)) 3045 if (y < cy && test_corner(y, cy))
3046 return RIGHTTOP; 3046 return RIGHTTOP;
3047 else if (test_edge(h - y - 1, h - cy)) 3047 else if (test_corner(h - y - 1, h - cy))
3048 return RIGHTBOTTOM; 3048 return RIGHTBOTTOM;
3049 } 3049 }
3050 3050