summaryrefslogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
authorAnselm R Garbe <garbeam@gmail.com>2008-05-22 11:16:23 +0100
committerAnselm R Garbe <garbeam@gmail.com>2008-05-22 11:16:23 +0100
commit825d6cb93a37f8c67a7c8b1a027e5eebc3f4dda7 (patch)
tree7f8776fd58a3d0a638a0abe69e2a055a5601833d /dwm.c
parents/nextunfloating/nexttiled/, changed zoom() behavior (diff)
downloaddwm-825d6cb93a37f8c67a7c8b1a027e5eebc3f4dda7.tar.gz
dwm-825d6cb93a37f8c67a7c8b1a027e5eebc3f4dda7.zip
s/unsigned long/ulong/
Diffstat (limited to '')
-rw-r--r--dwm.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/dwm.c b/dwm.c
index 8dc88fe..0c9acbe 100644
--- a/dwm.c
+++ b/dwm.c
@@ -61,6 +61,7 @@ enum { WMProtocols, WMDelete, WMName, WMState, WMLast };/* default atoms */
61 61
62/* typedefs */ 62/* typedefs */
63typedef unsigned int uint; 63typedef unsigned int uint;
64typedef unsigned long ulong;
64typedef struct Client Client; 65typedef struct Client Client;
65struct Client { 66struct Client {
66 char name[256]; 67 char name[256];
@@ -79,8 +80,8 @@ struct Client {
79 80
80typedef struct { 81typedef struct {
81 int x, y, w, h; 82 int x, y, w, h;
82 unsigned long norm[ColLast]; 83 ulong norm[ColLast];
83 unsigned long sel[ColLast]; 84 ulong sel[ColLast];
84 Drawable drawable; 85 Drawable drawable;
85 GC gc; 86 GC gc;
86 struct { 87 struct {
@@ -93,7 +94,7 @@ typedef struct {
93} DC; /* draw context */ 94} DC; /* draw context */
94 95
95typedef struct { 96typedef struct {
96 unsigned long mod; 97 ulong mod;
97 KeySym keysym; 98 KeySym keysym;
98 void (*func)(const void *arg); 99 void (*func)(const void *arg);
99 const void *arg; 100 const void *arg;
@@ -129,8 +130,8 @@ void destroynotify(XEvent *e);
129void detach(Client *c); 130void detach(Client *c);
130void detachstack(Client *c); 131void detachstack(Client *c);
131void drawbar(void); 132void drawbar(void);
132void drawsquare(Bool filled, Bool empty, Bool invert, unsigned long col[ColLast]); 133void drawsquare(Bool filled, Bool empty, Bool invert, ulong col[ColLast]);
133void drawtext(const char *text, unsigned long col[ColLast], Bool invert); 134void drawtext(const char *text, ulong col[ColLast], Bool invert);
134void *emallocz(uint size); 135void *emallocz(uint size);
135void enternotify(XEvent *e); 136void enternotify(XEvent *e);
136void eprint(const char *errstr, ...); 137void eprint(const char *errstr, ...);
@@ -140,7 +141,7 @@ void focusin(XEvent *e);
140void focusnext(const void *arg); 141void focusnext(const void *arg);
141void focusprev(const void *arg); 142void focusprev(const void *arg);
142Client *getclient(Window w); 143Client *getclient(Window w);
143unsigned long getcolor(const char *colstr); 144ulong getcolor(const char *colstr);
144long getstate(Window w); 145long getstate(Window w);
145Bool gettextprop(Window w, Atom atom, char *text, uint size); 146Bool gettextprop(Window w, Atom atom, char *text, uint size);
146void grabbuttons(Client *c, Bool focused); 147void grabbuttons(Client *c, Bool focused);
@@ -539,7 +540,7 @@ drawbar(void) {
539} 540}
540 541
541void 542void
542drawsquare(Bool filled, Bool empty, Bool invert, unsigned long col[ColLast]) { 543drawsquare(Bool filled, Bool empty, Bool invert, ulong col[ColLast]) {
543 int x; 544 int x;
544 XGCValues gcv; 545 XGCValues gcv;
545 XRectangle r = { dc.x, dc.y, dc.w, dc.h }; 546 XRectangle r = { dc.x, dc.y, dc.w, dc.h };
@@ -560,7 +561,7 @@ drawsquare(Bool filled, Bool empty, Bool invert, unsigned long col[ColLast]) {
560} 561}
561 562
562void 563void
563drawtext(const char *text, unsigned long col[ColLast], Bool invert) { 564drawtext(const char *text, ulong col[ColLast], Bool invert) {
564 int x, y, w, h; 565 int x, y, w, h;
565 uint len, olen; 566 uint len, olen;
566 XRectangle r = { dc.x, dc.y, dc.w, dc.h }; 567 XRectangle r = { dc.x, dc.y, dc.w, dc.h };
@@ -707,7 +708,7 @@ getclient(Window w) {
707 return c; 708 return c;
708} 709}
709 710
710unsigned long 711ulong
711getcolor(const char *colstr) { 712getcolor(const char *colstr) {
712 Colormap cmap = DefaultColormap(dpy, screen); 713 Colormap cmap = DefaultColormap(dpy, screen);
713 XColor color; 714 XColor color;
@@ -722,7 +723,7 @@ getstate(Window w) {
722 int format, status; 723 int format, status;
723 long result = -1; 724 long result = -1;
724 unsigned char *p = NULL; 725 unsigned char *p = NULL;
725 unsigned long n, extra; 726 ulong n, extra;
726 Atom real; 727 Atom real;
727 728
728 status = XGetWindowProperty(dpy, w, wmatom[WMState], 0L, 2L, False, wmatom[WMState], 729 status = XGetWindowProperty(dpy, w, wmatom[WMState], 0L, 2L, False, wmatom[WMState],