mirror of
https://github.com/LukeSmithxyz/st.git
synced 2024-11-22 07:15:59 +01:00
Fixing the too small window in non-tiling window managers.
This commit is contained in:
parent
122ed57702
commit
af29fb2a50
1 changed files with 11 additions and 11 deletions
22
st.c
22
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;
|
||||
|
|
Loading…
Reference in a new issue