X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Ffocuslabel.cc;h=846d035ebb78de0317161796e1009535b505db32;hb=59ef3022a4ce0a23e6d54f7d73a2aa77721e9cc9;hp=f45ee71d7718a61a02be94cb04ad05dc9259e10e;hpb=871e777e55fa76938da991b9b1a72605ba78bad4;p=chaz%2Fopenbox diff --git a/otk/focuslabel.cc b/otk/focuslabel.cc index f45ee71d..846d035e 100644 --- a/otk/focuslabel.cc +++ b/otk/focuslabel.cc @@ -38,7 +38,7 @@ void FocusLabel::fitString(const std::string &str) void FocusLabel::fitSize(int w, int h) { unsigned int sidemargin = _bevel_width * 2; - resize(w + sidemargin * 2, h); + resize(w + sidemargin * 2, h + _bevel_width * 2); } void FocusLabel::update() @@ -104,7 +104,7 @@ void FocusLabel::renderForeground() } display->renderControl(_screen)-> - drawString(*_surface, *ft, x, 0, *text_color, t); + drawString(*_surface, *ft, x, _bevel_width, *text_color, t); } }