diff options
author | Pavel Labath <pavelo@centrum.sk> | 2011-08-15 21:03:57 (GMT) |
---|---|---|
committer | Paul Tagliamonte <paultag@fluxbox.org> | 2012-04-07 02:13:13 (GMT) |
commit | bc803c3211f3caa3554c9e96f687701de007b436 (patch) | |
tree | d23fbbeb9affe7a4c3d67cde7c4732dd47625682 /src/RowSmartPlacement.cc | |
parent | 3012793a8f9151ded4c83da6075919a36dde412f (diff) | |
download | fluxbox_paul-bc803c3211f3caa3554c9e96f687701de007b436.zip fluxbox_paul-bc803c3211f3caa3554c9e96f687701de007b436.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.cc | 8 |
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(); |