X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=dwm.h;h=234a734370c72898000bfb6734a6b78aa0812a55;hb=1c2d673ded697f4b131f8700ce98392fbb383b2e;hp=e749f2c0e9682c4dc3b2e28b2a3d5074c0ff16d5;hpb=6b25d06d7d159bf89d740847fedc876ab0137b6b;p=dwm.git diff --git a/dwm.h b/dwm.h index e749f2c..234a734 100644 --- a/dwm.h +++ b/dwm.h @@ -38,6 +38,8 @@ /* mask shorthands, used in event.c and client.c */ #define BUTTONMASK (ButtonPressMask | ButtonReleaseMask) #define MOUSEMASK (BUTTONMASK | PointerMotionMask) +/* other stuff used in different places */ +#define BORDERPX 1 #define PROTODELWIN 1 enum { NetSupported, NetWMName, NetLast }; /* EWMH atoms */ @@ -101,7 +103,7 @@ extern void (*handler[LASTEvent])(XEvent *); /* event handler */ extern void (*arrange)(Arg *); /* arrange function, indicates mode */ extern Atom wmatom[WMLast], netatom[NetLast]; extern Bool running, issel, *seltag; /* seltag is array of Bool */ -extern Client *clients, *sel, *stack; /* global cleint list and stack */ +extern Client *clients, *sel, *stack; /* global client list and stack */ extern Cursor cursor[CurLast]; extern DC dc; /* global draw context */ extern Display *dpy; @@ -109,6 +111,7 @@ extern Window root, barwin; /* client.c */ extern void ban(Client *c); /* ban c from screen */ +extern void configure(Client *c); /* send synthetic configure event */ extern void focus(Client *c); /* focus c, c may be NULL */ extern Client *getclient(Window w); /* return client of w */ extern Client *getctitle(Window w); /* return client of title window */ @@ -116,6 +119,7 @@ extern void gravitate(Client *c, Bool invert); /* gravitate c */ extern void killclient(Arg *arg); /* kill c nicely */ extern void manage(Window w, XWindowAttributes *wa); /* manage new client */ extern void resize(Client *c, Bool sizehints, Corner sticky); /* resize c*/ +extern void resizetitle(Client *c); /* resizes c->twin correctly */ extern void updatesize(Client *c); /* update the size structs of c */ extern void updatetitle(Client *c); /* update the name of c */ extern void unmanage(Client *c); /* destroy c */