diff options
Diffstat (limited to 'src/Toolbar.cc')
-rw-r--r-- | src/Toolbar.cc | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/src/Toolbar.cc b/src/Toolbar.cc index 603ed08..b9e2fbb 100644 --- a/src/Toolbar.cc +++ b/src/Toolbar.cc | |||
@@ -175,25 +175,18 @@ Toolbar::Toolbar(BScreen &scrn, FbTk::Layer &layer, size_t width): | |||
175 | m_theme(scrn.screenNumber()), | 175 | m_theme(scrn.screenNumber()), |
176 | m_tool_factory(scrn), | 176 | m_tool_factory(scrn), |
177 | m_strut(0), | 177 | m_strut(0), |
178 | // lock rcmanager here | 178 | m_rc_auto_hide(scrn.resourceManager(), false, scrn.name() + ".toolbar.autoHide"), |
179 | m_rc_auto_hide(scrn.resourceManager().lock(), false, | 179 | m_rc_maximize_over(scrn.resourceManager(), false, scrn.name() + ".toolbar.maxOver"), |
180 | scrn.name() + ".toolbar.autoHide", scrn.altName() + ".Toolbar.AutoHide"), | 180 | m_rc_visible(scrn.resourceManager(), true, scrn.name() + ".toolbar.visible"), |
181 | m_rc_maximize_over(scrn.resourceManager(), false, | 181 | m_rc_width_percent(scrn.resourceManager(), 100, scrn.name() + ".toolbar.widthPercent"), |
182 | scrn.name() + ".toolbar.maxOver", scrn.altName() + ".Toolbar.MaxOver"), | 182 | m_rc_alpha(scrn.resourceManager(), 255, scrn.name() + ".toolbar.alpha"), |
183 | m_rc_visible(scrn.resourceManager(), true, scrn.name() + ".toolbar.visible", scrn.altName() + ".Toolbar.Visible"), | 183 | m_rc_layernum(scrn.resourceManager(), ResourceLayer::DOCK, scrn.name() + ".toolbar.layer"), |
184 | m_rc_width_percent(scrn.resourceManager(), 100, | 184 | m_rc_on_head(scrn.resourceManager(), 1, scrn.name() + ".toolbar.onhead"), |
185 | scrn.name() + ".toolbar.widthPercent", scrn.altName() + ".Toolbar.WidthPercent"), | ||
186 | m_rc_alpha(scrn.resourceManager(), 255, | ||
187 | scrn.name() + ".toolbar.alpha", scrn.altName() + ".Toolbar.Alpha"), | ||
188 | m_rc_layernum(scrn.resourceManager(), ResourceLayer::DOCK, | ||
189 | scrn.name() + ".toolbar.layer", scrn.altName() + ".Toolbar.Layer"), | ||
190 | m_rc_on_head(scrn.resourceManager(), 1, | ||
191 | scrn.name() + ".toolbar.onhead", scrn.altName() + ".Toolbar.onHead"), | ||
192 | m_rc_placement(scrn.resourceManager(), Toolbar::BOTTOMCENTER, | 185 | m_rc_placement(scrn.resourceManager(), Toolbar::BOTTOMCENTER, |
193 | scrn.name() + ".toolbar.placement", scrn.altName() + ".Toolbar.Placement"), | 186 | scrn.name() + ".toolbar.placement"), |
194 | m_rc_height(scrn.resourceManager(), 0, scrn.name() + ".toolbar.height", scrn.altName() + ".Toolbar.Height"), | 187 | m_rc_height(scrn.resourceManager(), 0, scrn.name() + ".toolbar.height"), |
195 | m_rc_tools(scrn.resourceManager(), "prevworkspace, workspacename, nextworkspace, iconbar, systemtray, clock", | 188 | m_rc_tools(scrn.resourceManager(), "prevworkspace, workspacename, nextworkspace, iconbar, systemtray, clock", |
196 | scrn.name() + ".toolbar.tools", scrn.altName() + ".Toolbar.Tools"), | 189 | scrn.name() + ".toolbar.tools"), |
197 | m_shape(new FbTk::Shape(frame.window, 0)), | 190 | m_shape(new FbTk::Shape(frame.window, 0)), |
198 | m_resize_lock(false) { | 191 | m_resize_lock(false) { |
199 | _FB_USES_NLS; | 192 | _FB_USES_NLS; |
@@ -239,7 +232,6 @@ Toolbar::Toolbar(BScreen &scrn, FbTk::Layer &layer, size_t width): | |||
239 | frame.window.showSubwindows(); | 232 | frame.window.showSubwindows(); |
240 | // frame.window.show(); | 233 | // frame.window.show(); |
241 | 234 | ||
242 | scrn.resourceManager().unlock(); | ||
243 | // setup to listen to child events | 235 | // setup to listen to child events |
244 | FbTk::EventManager::instance()->addParent(*this, window()); | 236 | FbTk::EventManager::instance()->addParent(*this, window()); |
245 | Fluxbox::instance()->keys()->registerWindow(window().window(), *this, | 237 | Fluxbox::instance()->keys()->registerWindow(window().window(), *this, |