all repos — fluxbox @ 856da248f74246424f5d923a9414427bec8284b0

custom fork of the fluxbox windowmanager

Fix geometry window sizing (W is wider than 0), plus vertical centring
(font ascent, not height).
rathnor rathnor
commit

856da248f74246424f5d923a9414427bec8284b0

parent

a5676afda491a97cae966f5267e26c572b78c267

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

jump to
M src/Screen.ccsrc/Screen.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: Screen.cc,v 1.76 2002/10/25 20:58:14 fluxgen Exp $ +// $Id: Screen.cc,v 1.77 2002/11/12 14:37:18 rathnor Exp $ #include "Screen.hh"

@@ -287,7 +287,7 @@

const char *s = i18n->getMessage( FBNLS::ScreenSet, FBNLS::ScreenPositionLength, - "0: 0000 x 0: 0000"); + "W: 0000 x H: 0000"); // W is wide! int l = strlen(s);

@@ -520,7 +520,7 @@ I18n *i18n = I18n::instance();

const char *s = i18n->getMessage( FBNLS::ScreenSet, FBNLS::ScreenPositionLength, - "0: 0000 x 0: 0000"); + "W: 0000 x H: 0000"); int l = strlen(s); //TODO: repeat from somewhere else?

@@ -1648,7 +1648,7 @@ getScreenNumber(),

theme->getWindowStyle().l_text_focus_gc, label, strlen(label), theme->getBevelWidth(), theme->getBevelWidth() + - theme->getWindowStyle().font.height()); + theme->getWindowStyle().font.ascent()); }