aboutsummaryrefslogtreecommitdiff
path: root/src/RowSmartPlacement.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/RowSmartPlacement.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/RowSmartPlacement.cc')
-rw-r--r--src/RowSmartPlacement.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/RowSmartPlacement.cc b/src/RowSmartPlacement.cc
index 79b42bb..3b17aa1 100644
--- a/src/RowSmartPlacement.cc
+++ b/src/RowSmartPlacement.cc
@@ -55,16 +55,16 @@ bool RowSmartPlacement::placeWindow(const FluxboxWindow &win, int head,
55 const ScreenPlacement &screen_placement = win.screen().placementStrategy(); 55 const ScreenPlacement &screen_placement = win.screen().placementStrategy();
56 56
57 bool top_bot = 57 bool top_bot =
58 screen_placement.colDirection() == ScreenPlacement::TOPBOTTOM; 58 screen_placement.colDirection() == TOPBOTTOMDIRECTION;
59 bool left_right = 59 bool left_right =
60 screen_placement.rowDirection() == ScreenPlacement::LEFTRIGHT; 60 screen_placement.rowDirection() == LEFTRIGHTDIRECTION;
61 61
62 int change_x = 1, change_y = 1; 62 int change_x = 1, change_y = 1;
63 63
64 if (screen_placement.colDirection() == ScreenPlacement::BOTTOMTOP) 64 if (screen_placement.colDirection() == BOTTOMTOPDIRECTION)
65 change_y = -1; 65 change_y = -1;
66 66
67 if (screen_placement.rowDirection() == ScreenPlacement::RIGHTLEFT) 67 if (screen_placement.rowDirection() == RIGHTLEFTDIRECTION)
68 change_x = -1; 68 change_x = -1;
69 69
70 int win_w = win.width() + win.fbWindow().borderWidth()*2 + win.widthOffset(); 70 int win_w = win.width() + win.fbWindow().borderWidth()*2 + win.widthOffset();