aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.mk2
-rw-r--r--dmenu.h23
2 files changed, 10 insertions, 15 deletions
diff --git a/config.mk b/config.mk
index 195fd4c..525ef17 100644
--- a/config.mk
+++ b/config.mk
@@ -1,5 +1,5 @@
1# dmenu version 1# dmenu version
2VERSION = 2.3 2VERSION = 2.4
3 3
4# Customize below to fit your system 4# Customize below to fit your system
5 5
diff --git a/dmenu.h b/dmenu.h
index bb3b144..2174688 100644
--- a/dmenu.h
+++ b/dmenu.h
@@ -14,25 +14,20 @@
14/* color */ 14/* color */
15enum { ColFG, ColBG, ColLast }; 15enum { ColFG, ColBG, ColLast };
16 16
17typedef struct DC DC; 17typedef struct {
18typedef struct Fnt Fnt;
19
20struct Fnt {
21 XFontStruct *xfont;
22 XFontSet set;
23 int ascent;
24 int descent;
25 int height;
26};
27
28struct DC {
29 int x, y, w, h; 18 int x, y, w, h;
30 unsigned long norm[ColLast]; 19 unsigned long norm[ColLast];
31 unsigned long sel[ColLast]; 20 unsigned long sel[ColLast];
32 Drawable drawable; 21 Drawable drawable;
33 Fnt font;
34 GC gc; 22 GC gc;
35}; /* draw context */ 23 struct {
24 XFontStruct *xfont;
25 XFontSet set;
26 int ascent;
27 int descent;
28 int height;
29 } font;
30} DC; /* draw context */
36 31
37extern int screen; 32extern int screen;
38extern Display *dpy; 33extern Display *dpy;