all repos — fluxbox @ b69bb1d0f8019ef0e11d9cf481111279625c4567

custom fork of the fluxbox windowmanager

saving toolbar resource
fluxgen fluxgen
commit

b69bb1d0f8019ef0e11d9cf481111279625c4567

parent

27a73906fe3b185d466099ae19fd986c08d43457

1 files changed, 6 insertions(+), 4 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.48 2002/12/04 17:58:01 fluxgen Exp $ +// $Id: Toolbar.cc,v 1.49 2002/12/04 22:36:47 fluxgen Exp $ #include "Toolbar.hh"

@@ -1349,7 +1349,7 @@ // reposition the slit as well to make sure it doesn't intersect the

// toolbar m_toolbarmenu.m_toolbar.screen()->getSlit()->reposition(); #endif // SLIT - + Fluxbox::instance()->save_rc(); } }

@@ -1383,17 +1383,19 @@ BasemenuItem *item = find(index);

if (! item) return; - m_toolbarmenu.m_toolbar.screen()->saveToolbarOnHead( + screen()->saveToolbarOnHead( static_cast<int>(item->function())); + hide(); m_toolbarmenu.m_toolbar.reconfigure(); + #ifdef SLIT // reposition the slit as well to make sure it doesn't intersect the // toolbar m_toolbarmenu.m_toolbar.screen()->getSlit()->reposition(); #endif // SLIT - + Fluxbox::instance()->save_rc(); } }