summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2012-10-04 09:56:15 +0200
committerMathias Gumz <akira at fluxbox dot org>2012-10-04 09:56:15 +0200
commite8f2e964c6a88e357bbc09b66cd3490cf9eed5ef (patch)
tree4ac71a45890d5b82c25f85ce374c3095fe89706f
parent391712b9805eda9d56a100f49d69b38863910565 (diff)
minor cosmeticHEADmaster
-rw-r--r--src/Window.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Window.cc b/src/Window.cc
index 0b8d1e58..2cf776e9 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -254,7 +254,7 @@ private:
// Helper class for getResizeDirection below
// Tests whether a point is on an edge or the corner.
-struct TestEdgeHelper {
+struct TestCornerHelper {
int corner_size_px, corner_size_pc;
inline bool operator()(int xy, int wh)
{
@@ -3035,16 +3035,16 @@ FluxboxWindow::ReferenceCorner FluxboxWindow::getResizeDirection(int x, int y,
int h = frame().height();
int cx = w / 2;
int cy = h / 2;
- TestEdgeHelper test_edge = { corner_size_px, corner_size_pc };
- if (x < cx && test_edge(x, cx)) {
- if (y < cy && test_edge(y, cy))
+ TestCornerHelper test_corner = { corner_size_px, corner_size_pc };
+ if (x < cx && test_corner(x, cx)) {
+ if (y < cy && test_corner(y, cy))
return LEFTTOP;
- else if (test_edge(h - y - 1, h - cy))
+ else if (test_corner(h - y - 1, h - cy))
return LEFTBOTTOM;
- } else if (test_edge(w - x - 1, w - cx)) {
- if (y < cy && test_edge(y, cy))
+ } else if (test_corner(w - x - 1, w - cx)) {
+ if (y < cy && test_corner(y, cy))
return RIGHTTOP;
- else if (test_edge(h - y - 1, h - cy))
+ else if (test_corner(h - y - 1, h - cy))
return RIGHTBOTTOM;
}