aboutsummaryrefslogtreecommitdiff
path: root/src/Screen.cc
diff options
context:
space:
mode:
authorrathnor <rathnor>2002-11-12 14:37:18 (GMT)
committerrathnor <rathnor>2002-11-12 14:37:18 (GMT)
commit856da248f74246424f5d923a9414427bec8284b0 (patch)
tree44736d87c7bb7e3961957493c698acf96c1d22c0 /src/Screen.cc
parenta5676afda491a97cae966f5267e26c572b78c267 (diff)
downloadfluxbox-856da248f74246424f5d923a9414427bec8284b0.zip
fluxbox-856da248f74246424f5d923a9414427bec8284b0.tar.bz2
Fix geometry window sizing (W is wider than 0), plus vertical centring
(font ascent, not height).
Diffstat (limited to 'src/Screen.cc')
-rw-r--r--src/Screen.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Screen.cc b/src/Screen.cc
index 0dae64b..9c2126b 100644
--- a/src/Screen.cc
+++ b/src/Screen.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Screen.cc,v 1.76 2002/10/25 20:58:14 fluxgen Exp $ 25// $Id: Screen.cc,v 1.77 2002/11/12 14:37:18 rathnor Exp $
26 26
27 27
28#include "Screen.hh" 28#include "Screen.hh"
@@ -287,7 +287,7 @@ resource(rm, screenname, altscreenname)
287 287
288 const char *s = i18n->getMessage( 288 const char *s = i18n->getMessage(
289 FBNLS::ScreenSet, FBNLS::ScreenPositionLength, 289 FBNLS::ScreenSet, FBNLS::ScreenPositionLength,
290 "0: 0000 x 0: 0000"); 290 "W: 0000 x H: 0000"); // W is wide!
291 291
292 int l = strlen(s); 292 int l = strlen(s);
293 293
@@ -520,7 +520,7 @@ void BScreen::reconfigure() {
520 520
521 const char *s = i18n->getMessage( 521 const char *s = i18n->getMessage(
522 FBNLS::ScreenSet, FBNLS::ScreenPositionLength, 522 FBNLS::ScreenSet, FBNLS::ScreenPositionLength,
523 "0: 0000 x 0: 0000"); 523 "W: 0000 x H: 0000");
524 int l = strlen(s); 524 int l = strlen(s);
525 525
526 //TODO: repeat from somewhere else? 526 //TODO: repeat from somewhere else?
@@ -1648,7 +1648,7 @@ void BScreen::showGeometry(unsigned int gx, unsigned int gy) {
1648 theme->getWindowStyle().l_text_focus_gc, 1648 theme->getWindowStyle().l_text_focus_gc,
1649 label, strlen(label), 1649 label, strlen(label),
1650 theme->getBevelWidth(), theme->getBevelWidth() + 1650 theme->getBevelWidth(), theme->getBevelWidth() +
1651 theme->getWindowStyle().font.height()); 1651 theme->getWindowStyle().font.ascent());
1652} 1652}
1653 1653
1654 1654