X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=blobdiff_plain;f=wm.h;h=a24b40d41f0b29ca972337551f78a781449a55a8;hp=7ee6103d16ba9b04ae0e56867ca88bf762706dfd;hb=83d23908d3438d7f1f62533a7c8d96fc1019df55;hpb=b9da4b082eb658b4142b61c149212f414f7653b6 diff --git a/wm.h b/wm.h index 7ee6103..a24b40d 100644 --- a/wm.h +++ b/wm.h @@ -13,19 +13,6 @@ typedef struct Client Client; typedef struct Key Key; -typedef enum Align Align; - -enum Align { - NORTH = 0x01, - EAST = 0x02, - SOUTH = 0x04, - WEST = 0x08, - NEAST = NORTH | EAST, - NWEST = NORTH | WEST, - SEAST = SOUTH | EAST, - SWEST = SOUTH | WEST, - CENTER = NEAST | SWEST -}; /* atoms */ enum { WMProtocols, WMDelete, WMLast }; @@ -34,20 +21,15 @@ enum { NetSupported, NetWMName, NetLast }; /* cursor */ enum { CurNormal, CurResize, CurMove, CurInput, CurLast }; -/* rects */ -enum { RFloat, RGrid, RLast }; - struct Client { - char name[256]; - char tag[256]; - unsigned int border; + char name[256], tag[256]; int proto; - Bool fixedsize; + int x, y, w, h; + int basew, baseh, incw, inch, maxw, maxh, minw, minh; + long flags; Window win; Window trans; Window title; - XSizeHints size; - XRectangle r[RLast]; Client *next; Client *snext; }; @@ -89,6 +71,7 @@ extern void focus(Client *c); extern void update_name(Client *c); extern void draw_client(Client *c); extern void resize(Client *c); +extern void update_size(Client *c); /* event.c */ extern unsigned int discard_events(long even_mask);