dwm.h
changeset 971 b2a0dfa22b1d
parent 968 ce9a5452ac8c
child 987 ea0cef59c3a3
equal deleted inserted replaced
970:d5c3537ee3be 971:b2a0dfa22b1d
    46 	char name[256];
    46 	char name[256];
    47 	int x, y, w, h;
    47 	int x, y, w, h;
    48 	int rx, ry, rw, rh; /* revert geometry */
    48 	int rx, ry, rw, rh; /* revert geometry */
    49 	int basew, baseh, incw, inch, maxw, maxh, minw, minh;
    49 	int basew, baseh, incw, inch, maxw, maxh, minw, minh;
    50 	int minax, maxax, minay, maxay;
    50 	int minax, maxax, minay, maxay;
    51 	int unmapped;
       
    52 	long flags; 
    51 	long flags; 
    53 	unsigned int border, oldborder;
    52 	unsigned int border, oldborder;
    54 	Bool isbanned, isfixed, ismax, isfloating;
    53 	Bool isbanned, isfixed, ismax, isfloating;
    55 	Bool *tags;
    54 	Bool *tags;
    56 	Client *next;
    55 	Client *next;
    79 extern int screen, sx, sy, sw, sh;		/* screen geometry */
    78 extern int screen, sx, sy, sw, sh;		/* screen geometry */
    80 extern int wax, way, wah, waw;			/* windowarea geometry */
    79 extern int wax, way, wah, waw;			/* windowarea geometry */
    81 extern unsigned int bh, blw, bpos;		/* bar height, bar layout label width, bar position */
    80 extern unsigned int bh, blw, bpos;		/* bar height, bar layout label width, bar position */
    82 extern unsigned int ntags, numlockmask;		/* number of tags, numlock mask */
    81 extern unsigned int ntags, numlockmask;		/* number of tags, numlock mask */
    83 extern void (*handler[LASTEvent])(XEvent *);	/* event handler */
    82 extern void (*handler[LASTEvent])(XEvent *);	/* event handler */
    84 extern Atom dwmprops, wmatom[WMLast], netatom[NetLast];
    83 extern Atom wmatom[WMLast], netatom[NetLast];
    85 extern Bool selscreen, *seltags;		/* seltags is array of Bool */
    84 extern Bool selscreen, *seltags;		/* seltags is array of Bool */
    86 extern Client *clients, *sel, *stack;		/* global client list and stack */
    85 extern Client *clients, *sel, *stack;		/* global client list and stack */
    87 extern Cursor cursor[CurLast];
    86 extern Cursor cursor[CurLast];
    88 extern DC dc;					/* global draw context */
    87 extern DC dc;					/* global draw context */
    89 extern Display *dpy;
    88 extern Display *dpy;
    94 void ban(Client *c);			/* bans c */
    93 void ban(Client *c);			/* bans c */
    95 void configure(Client *c);		/* send synthetic configure event */
    94 void configure(Client *c);		/* send synthetic configure event */
    96 void detach(Client *c);			/* detaches c from global client list */
    95 void detach(Client *c);			/* detaches c from global client list */
    97 void focus(Client *c);			/* focus c if visible && !NULL, or focus top visible */
    96 void focus(Client *c);			/* focus c if visible && !NULL, or focus top visible */
    98 void killclient(const char *arg);	/* kill sel  nicely */
    97 void killclient(const char *arg);	/* kill sel  nicely */
    99 Bool getprops(Client *c);		/* gets client properties */
       
   100 void manage(Window w, XWindowAttributes *wa);	/* manage new client */
    98 void manage(Window w, XWindowAttributes *wa);	/* manage new client */
   101 void resize(Client *c, int x, int y,
    99 void resize(Client *c, int x, int y,
   102 		int w, int h, Bool sizehints);	/* resize with given coordinates c*/
   100 		int w, int h, Bool sizehints);	/* resize with given coordinates c*/
   103 void setprops(Client *c);		/* sets client properties */
       
   104 void unban(Client *c);			/* unbans c */
   101 void unban(Client *c);			/* unbans c */
   105 void unmanage(Client *c, long state);	/* unmanage c */
   102 void unmanage(Client *c);		/* unmanage c */
   106 void updatesizehints(Client *c);	/* update the size hint variables of c */
   103 void updatesizehints(Client *c);	/* update the size hint variables of c */
   107 void updatetitle(Client *c);		/* update the name of c */
   104 void updatetitle(Client *c);		/* update the name of c */
   108 
   105 
   109 /* draw.c */
   106 /* draw.c */
   110 void drawstatus(void);			/* draw the bar */
   107 void drawstatus(void);			/* draw the bar */
   129 const char *getsymbol(void);		/* returns symbol of enabled layout */
   126 const char *getsymbol(void);		/* returns symbol of enabled layout */
   130 void initlayouts(void);			/* initialize layout array */
   127 void initlayouts(void);			/* initialize layout array */
   131 Bool isarrange(void (*func)());		/* returns True if func is the layout function in use */
   128 Bool isarrange(void (*func)());		/* returns True if func is the layout function in use */
   132 Bool isfloating(void);			/* returns True if floating layout is enabled */
   129 Bool isfloating(void);			/* returns True if floating layout is enabled */
   133 Bool isvisible(Client *c);		/* returns True if client is visible */
   130 Bool isvisible(Client *c);		/* returns True if client is visible */
   134 void getdwmprops(void);			/* gets dwm properties */
       
   135 Client *nexttiled(Client *c);		/* returns tiled successor of c */
   131 Client *nexttiled(Client *c);		/* returns tiled successor of c */
   136 void restack(void);			/* restores z layers of all clients */
   132 void restack(void);			/* restores z layers of all clients */
   137 void setlayout(const char *arg);	/* sets layout, NULL means next layout */
   133 void setlayout(const char *arg);	/* sets layout, NULL means next layout */
   138 void tag(const char *arg);		/* tags sel with arg's index */
   134 void tag(const char *arg);		/* tags sel with arg's index */
   139 void togglebar(const char *arg);	/* shows/hides the bar */
   135 void togglebar(const char *arg);	/* shows/hides the bar */