aboutsummaryrefslogtreecommitdiff
path: root/src/ColSmartPlacement.cc
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-08-15 21:03:57 (GMT)
committerPavel Labath <pavelo@centrum.sk>2011-11-01 10:04:02 (GMT)
commit698a4af938737295494dade50950d1aeebc8b55d (patch)
tree075017c3a59ac2575f708d223cf2391e82b9eb69 /src/ColSmartPlacement.cc
parent678a98de943963e993827540496741ae814af8bd (diff)
downloadfluxbox_paul-698a4af938737295494dade50950d1aeebc8b55d.zip
fluxbox_paul-698a4af938737295494dade50950d1aeebc8b55d.tar.bz2
Move declarations of Resource enums to a separate file
The reason for this is that I need to access those enums from fluxbox-update_configs and I don't want to #include and link everything in src. I also merged Slit::Placement, Toolbar::Placement and FbWinFrame::TabPlacement into one enum.
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 &&