all repos — fluxbox @ 99c95b14356b31d737aa9624f15831df0c5384b0

custom fork of the fluxbox windowmanager

added toolbar.height item
fluxgen fluxgen
commit

99c95b14356b31d737aa9624f15831df0c5384b0

parent

84c9a6a804814b46dec0c0d56e586d4edfa8ed12

1 files changed, 5 insertions(+), 2 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.116 2003/08/27 00:11:57 fluxgen Exp $ +// $Id: Toolbar.cc,v 1.117 2003/08/27 19:56:56 fluxgen Exp $ #include "Toolbar.hh"

@@ -584,7 +584,10 @@

if (max_height < m_iconbar_theme.unfocusedText().font().height()) max_height = m_iconbar_theme.unfocusedText().font().height(); - if (*m_rc_height != 0) + if (theme().height() > 0) + max_height = theme().height(); + + if (*m_rc_height > 0 && *m_rc_height < 100) max_height = *m_rc_height; frame.height = max_height;