aboutsummaryrefslogtreecommitdiff
path: root/src/ColSmartPlacement.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/ColSmartPlacement.cc')
-rw-r--r--src/ColSmartPlacement.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ColSmartPlacement.cc b/src/ColSmartPlacement.cc
index b0bcf68..304deca 100644
--- a/src/ColSmartPlacement.cc
+++ b/src/ColSmartPlacement.cc
@@ -53,8 +53,8 @@ bool ColSmartPlacement::placeWindow(const FluxboxWindow &win, int head,
53 int next_x, next_y; 53 int next_x, next_y;
54 const ScreenPlacement &screen_placement = win.screen().placementStrategy(); 54 const ScreenPlacement &screen_placement = win.screen().placementStrategy();
55 55
56 bool top_bot = screen_placement.colDirection() == ScreenPlacement::TOPBOTTOM; 56 bool top_bot = screen_placement.colDirection() == TOPBOTTOMDIRECTION;
57 bool left_right = screen_placement.rowDirection() == ScreenPlacement::LEFTRIGHT; 57 bool left_right = screen_placement.rowDirection() == LEFTRIGHTDIRECTION;
58 58
59 int test_x; 59 int test_x;
60 60
@@ -70,7 +70,7 @@ bool ColSmartPlacement::placeWindow(const FluxboxWindow &win, int head,
70 test_x = head_right - win_w; 70 test_x = head_right - win_w;
71 71
72 int change_y = 1; 72 int change_y = 1;
73 if (screen_placement.colDirection() == ScreenPlacement::BOTTOMTOP) 73 if (screen_placement.colDirection() == BOTTOMTOPDIRECTION)
74 change_y = -1; 74 change_y = -1;
75 75
76 while (!placed && 76 while (!placed &&