aboutsummaryrefslogtreecommitdiff
path: root/src/ScreenPlacement.cc
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-06-16 19:09:37 (GMT)
committerPavel Labath <pavelo@centrum.sk>2013-02-16 23:54:31 (GMT)
commit9f2c3883b7cf08a5f9d311fd8f7fc317574b605b (patch)
tree55461e357b95ddaa582b73c840f4c5e6846b0f69 /src/ScreenPlacement.cc
parent590efd07bb2ed1ce78ce6e5e6750b57311904f1f (diff)
downloadfluxbox_pavel-9f2c3883b7cf08a5f9d311fd8f7fc317574b605b.zip
fluxbox_pavel-9f2c3883b7cf08a5f9d311fd8f7fc317574b605b.tar.bz2
Replace ResourceManager with the lua version
Loading of an init file with the new manager works ok. Saving and restarting is still not completed. This touches many files because i removed the alternative name of resources. Unlike Xrm, lua does not have native support for alt names. It should be fairly easy to add them, but I think that is unnecessary and would be confusing.
Diffstat (limited to 'src/ScreenPlacement.cc')
-rw-r--r--src/ScreenPlacement.cc15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/ScreenPlacement.cc b/src/ScreenPlacement.cc
index 72efdba..b01633c 100644
--- a/src/ScreenPlacement.cc
+++ b/src/ScreenPlacement.cc
@@ -44,15 +44,12 @@ using std::cerr;
44using std::endl; 44using std::endl;
45 45
46ScreenPlacement::ScreenPlacement(BScreen &screen): 46ScreenPlacement::ScreenPlacement(BScreen &screen):
47 m_row_direction(screen.resourceManager(), LEFTRIGHT, 47 m_row_direction(screen.resourceManager(), LEFTRIGHT,
48 screen.name()+".rowPlacementDirection", 48 screen.name()+".rowPlacementDirection"),
49 screen.altName()+".RowPlacementDirection"), 49 m_col_direction(screen.resourceManager(), TOPBOTTOM,
50 m_col_direction(screen.resourceManager(), TOPBOTTOM, 50 screen.name()+".colPlacementDirection"),
51 screen.name()+".colPlacementDirection", 51 m_placement_policy(screen.resourceManager(), ROWMINOVERLAPPLACEMENT,
52 screen.altName()+".ColPlacementDirection"), 52 screen.name()+".windowPlacement"),
53 m_placement_policy(screen.resourceManager(), ROWMINOVERLAPPLACEMENT,
54 screen.name()+".windowPlacement",
55 screen.altName()+".WindowPlacement"),
56 m_old_policy(ROWSMARTPLACEMENT), 53 m_old_policy(ROWSMARTPLACEMENT),
57 m_strategy(0), 54 m_strategy(0),
58 m_screen(screen) 55 m_screen(screen)