diff options
Diffstat (limited to 'src/Screen.cc')
-rw-r--r-- | src/Screen.cc | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/Screen.cc b/src/Screen.cc index cf7f438..15fab9d 100644 --- a/src/Screen.cc +++ b/src/Screen.cc | |||
@@ -206,11 +206,6 @@ private: | |||
206 | FbWinFrame::TabPlacement m_place; | 206 | FbWinFrame::TabPlacement m_place; |
207 | }; | 207 | }; |
208 | 208 | ||
209 | void clampMenuDelay(int& delay) { | ||
210 | delay = FbTk::Util::clamp(delay, 0, 5000); | ||
211 | } | ||
212 | |||
213 | |||
214 | struct TabPlacementString { | 209 | struct TabPlacementString { |
215 | FbWinFrame::TabPlacement placement; | 210 | FbWinFrame::TabPlacement placement; |
216 | const char* str; | 211 | const char* str; |
@@ -282,7 +277,7 @@ BScreen::ScreenResource::ScreenResource(FbTk::ResourceManager_base &rm, | |||
282 | focused_alpha(rm, 255, scrname+".window.focus.alpha"), | 277 | focused_alpha(rm, 255, scrname+".window.focus.alpha"), |
283 | unfocused_alpha(rm, 255, scrname+".window.unfocus.alpha"), | 278 | unfocused_alpha(rm, 255, scrname+".window.unfocus.alpha"), |
284 | menu_alpha(rm, 255, scrname+".menu.alpha"), | 279 | menu_alpha(rm, 255, scrname+".menu.alpha"), |
285 | menu_delay(rm, 200, scrname + ".menuDelay"), | 280 | menu_delay(rm, 200, scrname + ".menuDelay", FbTk::RangedIntTraits(0, 5000)), |
286 | tab_width(rm, 64, scrname + ".tab.width"), | 281 | tab_width(rm, 64, scrname + ".tab.width"), |
287 | tooltip_delay(rm, 500, scrname + ".tooltipDelay"), | 282 | tooltip_delay(rm, 500, scrname + ".tooltipDelay"), |
288 | allow_remote_actions(rm, false, scrname+".allowRemoteActions"), | 283 | allow_remote_actions(rm, false, scrname+".allowRemoteActions"), |
@@ -429,8 +424,6 @@ BScreen::BScreen(FbTk::ResourceManager_base &rm, | |||
429 | unfocusedWinFrameTheme()->setAlpha(*resource.unfocused_alpha); | 424 | unfocusedWinFrameTheme()->setAlpha(*resource.unfocused_alpha); |
430 | m_menutheme->setAlpha(*resource.menu_alpha); | 425 | m_menutheme->setAlpha(*resource.menu_alpha); |
431 | 426 | ||
432 | clampMenuDelay(*resource.menu_delay); | ||
433 | |||
434 | m_menutheme->setDelay(*resource.menu_delay); | 427 | m_menutheme->setDelay(*resource.menu_delay); |
435 | 428 | ||
436 | m_tracker.join(focusedWinFrameTheme()->reconfigSig(), | 429 | m_tracker.join(focusedWinFrameTheme()->reconfigSig(), |
@@ -841,8 +834,6 @@ void BScreen::reconfigure() { | |||
841 | unfocusedWinFrameTheme()->setAlpha(*resource.unfocused_alpha); | 834 | unfocusedWinFrameTheme()->setAlpha(*resource.unfocused_alpha); |
842 | m_menutheme->setAlpha(*resource.menu_alpha); | 835 | m_menutheme->setAlpha(*resource.menu_alpha); |
843 | 836 | ||
844 | clampMenuDelay(*resource.menu_delay); | ||
845 | |||
846 | m_menutheme->setDelay(*resource.menu_delay); | 837 | m_menutheme->setDelay(*resource.menu_delay); |
847 | 838 | ||
848 | // realize the number of workspaces from the init-file | 839 | // realize the number of workspaces from the init-file |
@@ -1710,11 +1701,10 @@ void BScreen::setupConfigmenu(FbTk::Menu &menu) { | |||
1710 | FbTk::RefCount<FbTk::Menu> alpha_menu( createMenu(alphamenu_label) ); | 1701 | FbTk::RefCount<FbTk::Menu> alpha_menu( createMenu(alphamenu_label) ); |
1711 | 1702 | ||
1712 | if (FbTk::Transparent::haveComposite(true)) { | 1703 | if (FbTk::Transparent::haveComposite(true)) { |
1713 | static FbTk::SimpleAccessor<bool> s_pseudo(Fluxbox::instance()->getPseudoTrans()); | ||
1714 | alpha_menu->insert(new FbTk::BoolMenuItem(_FB_XTEXT(Configmenu, ForcePseudoTrans, | 1704 | alpha_menu->insert(new FbTk::BoolMenuItem(_FB_XTEXT(Configmenu, ForcePseudoTrans, |
1715 | "Force Pseudo-Transparency", | 1705 | "Force Pseudo-Transparency", |
1716 | "When composite is available, still use old pseudo-transparency"), | 1706 | "When composite is available, still use old pseudo-transparency"), |
1717 | s_pseudo, save_and_reconfigure)); | 1707 | Fluxbox::instance()->getPseudoTransResource(), save_and_reconfigure)); |
1718 | } | 1708 | } |
1719 | 1709 | ||
1720 | // in order to save system resources, don't save or reconfigure alpha | 1710 | // in order to save system resources, don't save or reconfigure alpha |