all repos — openbox @ 8b55442b2e0893f3064e88c4372bd0ecf00ba830

openbox fork - make it a bit more like ryudo

use drop shadow height in the font height.
honour rc file config option for drop shadows with new shadow code
Scott Moynes smoynes@nexus.carleton.ca
commit

8b55442b2e0893f3064e88c4372bd0ecf00ba830

parent

8552ba2ac95cf489c404df0175d4eac9cf23c3a7

2 files changed, 4 insertions(+), 3 deletions(-)

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

@@ -331,7 +331,7 @@ #endif

_display, _xftfont, (XftChar8 *) string.c_str(), string.size(), &info); - return info.xOff + (_shadow ? 1 : 0); + return info.xOff + (_shadow ? _offset : 0); } #endif // XFT

@@ -350,7 +350,7 @@ assert(_valid);

#ifdef XFT if (_xftfont) - return _xftfont->height + (_shadow ? 1 : 0); + return _xftfont->height + (_shadow ? _offset : 0); #endif // XFT if (i18n.multibyte())
M src/Screen.ccsrc/Screen.cc

@@ -2757,7 +2757,8 @@ }

BFont *b = new BFont(blackbox->getXDisplay(), this, family, i, bold, - italic, dropShadow, offset, tint, resource.aa_fonts); + italic, dropShadow && resource.shadow_fonts, offset, + tint, resource.aa_fonts); if (b->valid()) return b; else