all repos — fluxbox @ f9058a548028f7505022b56b260342bef75daaff

custom fork of the fluxbox windowmanager

fixed theme height
fluxgen fluxgen
commit

f9058a548028f7505022b56b260342bef75daaff

parent

ad0cadcc04895073cff9518daa51c5fcea418777

1 files changed, 7 insertions(+), 4 deletions(-)

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

@@ -19,7 +19,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: FbWinFrame.cc,v 1.37 2003/08/19 16:13:25 fluxgen Exp $ +// $Id: FbWinFrame.cc,v 1.38 2003/08/22 15:20:32 fluxgen Exp $ #include "FbWinFrame.hh"

@@ -707,10 +707,13 @@ if (!m_use_titlebar)

return; // resize titlebar to window size with font height + int title_height = m_theme.font().height() == 0 ? 16 : + m_theme.font().height() + m_bevel*2 + 2; + if (m_theme.titleHeight() != 0) + title_height = m_theme.titleHeight(); + m_titlebar.moveResize(-m_titlebar.borderWidth(), -m_titlebar.borderWidth(), - m_window.width(), - m_theme.font().height() == 0 ? 16 : - m_theme.font().height() + m_bevel*2 + 2); + m_window.width(), title_height); // draw left buttons first unsigned int next_x = m_bevel;