aboutsummaryrefslogtreecommitdiffstats
path: root/calmwm.c
diff options
context:
space:
mode:
authoroga2008-06-15 02:47:46 +0000
committeroga2008-06-15 02:47:46 +0000
commit95f0da676903ac1975beaa3567cb8c5ba28660e5 (patch)
tree9b5c8fbd2442ccbde0b95a852321b9a5b5ee93f7 /calmwm.c
parent436f35e0eec7bc1d4cebee440858aad0e2f5e123 (diff)
downloadcwm-95f0da676903ac1975beaa3567cb8c5ba28660e5.tar.gz
Rip out and burn the HASH_* stuff. We don't need a SPLAY tree for one font.
makes the code a lot simpler. While here rearrange the font handling functions to be less shit. ok and help okan@.
Diffstat (limited to 'calmwm.c')
-rw-r--r--calmwm.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/calmwm.c b/calmwm.c
index 3a0f18c..08d3e36 100644
--- a/calmwm.c
+++ b/calmwm.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $Id: calmwm.c,v 1.20 2008/05/21 14:11:19 oga Exp $
+ * $Id: calmwm.c,v 1.21 2008/06/15 02:47:46 oga Exp $
*/
#include "headers.h"
@@ -38,7 +38,6 @@ struct client_ctx_q Clientq;
int Doshape, Shape_ev;
int Starting;
struct conf Conf;
-struct fontdesc *DefaultFont = NULL;
/* From TWM */
#define gray_width 2
@@ -149,6 +148,8 @@ x_setupscreen(struct screen_ctx *sc, u_int which)
XSetWindowAttributes rootattr;
struct keybinding *kb;
+ Curscreen = sc;
+
sc->display = x_screenname(which);
sc->which = which;
sc->rootwin = RootWindow(X_Dpy, which);
@@ -203,9 +204,7 @@ x_setupscreen(struct screen_ctx *sc, u_int which)
GCLineWidth|GCSubwindowMode, &gv);
font_init(sc);
- DefaultFont = font_getx(sc, Conf.DefaultFontName);
- sc->fontheight = font_ascent(DefaultFont) +
- font_descent(DefaultFont) + 1;
+ conf_font(&Conf);
/*
* XXX - this should *really* be in screen_init(). ordering
@@ -231,7 +230,6 @@ x_setupscreen(struct screen_ctx *sc, u_int which)
}
XFree(wins);
- Curscreen = sc; /* XXX */
screen_init();
screen_updatestackingorder();