st

my customized branch of st - synced with upstream git://git.suckless.org/st
git clone git://git.jakekoroman.com/st
Log | Files | Refs | README | LICENSE

commit af29fb2a5015918a8bb32075ab82b4e59d85910a
parent 122ed577027ccbb85b2fe6a0f9449035fe074a9e
Author: Christoph Lohmann <20h@r-36.net>
Date:   Mon, 10 Sep 2012 13:39:41 +0200

Fixing the too small window in non-tiling window managers.

Diffstat:
Mst.c | 22+++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/st.c b/st.c @@ -1933,6 +1933,17 @@ xinit(void) { die("Can't open display\n"); xw.scr = XDefaultScreen(xw.dpy); + /* font */ + initfonts(FONT, BOLDFONT, ITALICFONT); + + /* XXX: Assuming same size for bold font */ + xw.cw = dc.font.rbearing - dc.font.lbearing; + xw.ch = dc.font.ascent + dc.font.descent; + + /* colors */ + xw.cmap = XDefaultColormap(xw.dpy, xw.scr); + xloadcols(); + /* adjust fixed window geometry */ if(xw.isfixed) { sw = DisplayWidth(xw.dpy, xw.scr); @@ -1952,17 +1963,6 @@ xinit(void) { xw.fy = 0; } - /* font */ - initfonts(FONT, BOLDFONT, ITALICFONT); - - /* XXX: Assuming same size for bold font */ - xw.cw = dc.font.rbearing - dc.font.lbearing; - xw.ch = dc.font.ascent + dc.font.descent; - - /* colors */ - xw.cmap = XDefaultColormap(xw.dpy, xw.scr); - xloadcols(); - attrs.background_pixel = dc.col[DefaultBG]; attrs.border_pixel = dc.col[DefaultBG]; attrs.bit_gravity = NorthWestGravity;