all repos — fluxbox @ 11673856e37e068dcfc637a5faa2493e5b781ac1

custom fork of the fluxbox windowmanager

added maximize over resource and menu item
fluxgen fluxgen
commit

11673856e37e068dcfc637a5faa2493e5b781ac1

parent

a4e27110ac0169594b0a5208a12f536f92f5f2e1

2 files changed, 9 insertions(+), 5 deletions(-)

jump to
M src/Toolbar.ccsrc/Toolbar.cc

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Toolbar.cc,v 1.99 2003/07/10 13:46:47 fluxgen Exp $ +// $Id: Toolbar.cc,v 1.100 2003/07/10 15:52:58 fluxgen Exp $ #include "Toolbar.hh"

@@ -264,6 +264,8 @@ m_layeritem(frame.window, layer),

m_strut(0), m_rc_auto_hide(scrn.resourceManager(), false, scrn.name() + ".toolbar.autoHide", scrn.altName() + ".Toolbar.AutoHide"), + m_rc_maximize_over(scrn.resourceManager(), false, + scrn.name() + ".toolbar.maxOver", scrn.altName() + ".Toolbar.MaxOver"), m_rc_width_percent(scrn.resourceManager(), 65, scrn.name() + ".toolbar.widthPercent", scrn.altName() + ".Toolbar.WidthPercent"), m_rc_layernum(scrn.resourceManager(), Fluxbox::Layer(Fluxbox::instance()->getDesktopLayer()),

@@ -355,7 +357,7 @@ bool had_strut = m_strut ? true : false;

clearStrut(); // we should request space if we're in autohide mode or // if the user dont want to request space for toolbar. - if (doAutoHide()) { + if (doAutoHide() || *m_rc_maximize_over) { if (had_strut) screen().updateAvailableWorkspaceArea(); return;

@@ -1380,7 +1382,8 @@ menu.insert(new BoolMenuItem(i18n->getMessage(FBNLS::CommonSet, FBNLS::CommonAutoHide,

"Auto hide"), *m_rc_auto_hide, reconfig_toolbar_and_save_resource)); - + menu.insert(new BoolMenuItem("Maximize Over", *m_rc_maximize_over, + reconfig_toolbar_and_save_resource)); menu.insert("Layer...", &tbar.layermenu()); if (tbar.screen().hasXinerama()) {
M src/Toolbar.hhsrc/Toolbar.hh

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Toolbar.hh,v 1.37 2003/07/10 11:45:22 fluxgen Exp $ +// $Id: Toolbar.hh,v 1.38 2003/07/10 15:52:58 fluxgen Exp $ #ifndef TOOLBAR_HH #define TOOLBAR_HH

@@ -36,6 +36,7 @@ #include "Observer.hh"

#include "XLayer.hh" #include "XLayerItem.hh" #include "LayerMenu.hh" +#include "Resource.hh" #include <memory>

@@ -201,7 +202,7 @@ FbTk::XLayerItem m_layeritem;

Strut *m_strut; ///< created and destroyed by BScreen // resources - FbTk::Resource<bool> m_rc_auto_hide; + FbTk::Resource<bool> m_rc_auto_hide, m_rc_maximize_over; FbTk::Resource<int> m_rc_width_percent; FbTk::Resource<Fluxbox::Layer> m_rc_layernum; FbTk::Resource<int> m_rc_on_head;