about summary refs log tree commit diff stats
path: root/dwm.c
diff options
context:
space:
mode:
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/dwm.c b/dwm.c
index 7faad22..d7d8bff 100644
--- a/dwm.c
+++ b/dwm.c
@@ -233,7 +233,7 @@ static Client *sel = NULL;
 static Client *stack = NULL;
 static Cursor cursor[CurLast];
 static Display *dpy;
-static DC dc = {0};
+static DC dc;
 static Layout *lt[] = { NULL, NULL };
 static Window root, barwin;
 /* configuration, allows nested code to access above variables */
@@ -250,7 +250,8 @@ applyrules(Client *c) {
 	XClassHint ch = { 0 };
 
 	/* rule matching */
-	XGetClassHint(dpy, c->win, &ch);
+	if(XGetClassHint(dpy, c->win, &ch) == 0)
+		return;
 	for(i = 0; i < LENGTH(rules); i++) {
 		r = &rules[i];
 		if((!r->title || strstr(c->name, r->title))
@@ -796,9 +797,6 @@ initfont(const char *fontstr) {
 		}
 	}
 	else {
-		if(dc.font.xfont)
-			XFreeFont(dpy, dc.font.xfont);
-		dc.font.xfont = NULL;
 		if(!(dc.font.xfont = XLoadQueryFont(dpy, fontstr))
 		&& !(dc.font.xfont = XLoadQueryFont(dpy, "fixed")))
 			die("error, cannot load font: '%s'\n", fontstr);
r.dev> 2019-06-12 20:06:35 -0400 updated makefile install section' href='/gbmor/getwtxt/commit/Makefile?h=v0.4.15&id=be76daaa8b4e6f6d5f60c79ecd84a8d034cbe351'>be76daa ^
69217dd ^
96fbc6e ^
69217dd ^
96fbc6e ^



be76daa ^
69217dd ^
96fbc6e ^
69217dd ^
96fbc6e ^


86b7c42 ^
be76daa ^

69217dd ^
96fbc6e ^
69217dd ^
96fbc6e ^



69217dd ^
96fbc6e ^


ee0d421 ^
96fbc6e ^

69217dd ^






96fbc6e ^


69217dd ^
96fbc6e ^
be76daa ^

69217dd ^
96fbc6e ^
69217dd ^
96fbc6e ^











f532f49 ^



69217dd ^
96fbc6e ^



be76daa ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83