aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Lohmann <20h@r-36.net>2012-09-10 13:39:41 +0200
committerChristoph Lohmann <20h@r-36.net>2012-09-10 13:39:41 +0200
commit10cb169ede55b1f38601ebd9e85b4262916ddc16 (patch)
tree00b5ca2ad810eab65017c97f62bbcadd8415ada2
parente5588098c086a64d7339f0cbf1c187e068b9bfd9 (diff)
downloadst-10cb169ede55b1f38601ebd9e85b4262916ddc16.tar.gz
st-10cb169ede55b1f38601ebd9e85b4262916ddc16.tar.bz2
Fixing the too small window in non-tiling window managers.
-rw-r--r--st.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/st.c b/st.c
index a4575f4..15d22ac 100644
--- 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;