[hackers] [st] Fixing the too small window in non-tiling window managers. || Christoph Lohmann

From: <hg_AT_suckless.org>
Date: Mon, 10 Sep 2012 13:42:37 +0200 (CEST)

changeset: 291:6a1cfe76c23c
tag: tip
user: Christoph Lohmann <20h_AT_r-36.net>
date: Mon Sep 10 13:39:41 2012 +0200
files: st.c
description:
Fixing the too small window in non-tiling window managers.


diff -r 6d5139347035 -r 6a1cfe76c23c st.c
--- a/st.c Thu Sep 06 08:02:56 2012 +0200
+++ b/st.c Mon Sep 10 13:39:41 2012 +0200
_AT_@ -1933,6 +1933,17 @@
                 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);
_AT_@ -1952,17 +1963,6 @@
                 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;
Received on Mon Sep 10 2012 - 13:42:37 CEST

This archive was generated by hypermail 2.3.0 : Mon Sep 10 2012 - 13:48:07 CEST