dwm.h
changeset 953 d7de5c7bdbe4
parent 951 3a0407d4b95b
child 956 484245788760
equal deleted inserted replaced
952:4f66942cc63b 953:d7de5c7bdbe4
    79 extern int screen, sx, sy, sw, sh;		/* screen geometry */
    79 extern int screen, sx, sy, sw, sh;		/* screen geometry */
    80 extern int wax, way, wah, waw;			/* windowarea geometry */
    80 extern int wax, way, wah, waw;			/* windowarea geometry */
    81 extern unsigned int bh, blw, bpos;		/* bar height, bar layout label width, bar position */
    81 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 */
    82 extern unsigned int ntags, numlockmask;		/* number of tags, numlock mask */
    83 extern void (*handler[LASTEvent])(XEvent *);	/* event handler */
    83 extern void (*handler[LASTEvent])(XEvent *);	/* event handler */
    84 extern Atom dwmtags, wmatom[WMLast], netatom[NetLast];
    84 extern Atom dwmconfig, wmatom[WMLast], netatom[NetLast];
    85 extern Bool selscreen, *seltag;			/* seltag is array of Bool */
    85 extern Bool selscreen, *seltag;			/* seltag is array of Bool */
    86 extern Client *clients, *sel, *stack;		/* global client list and stack */
    86 extern Client *clients, *sel, *stack;		/* global client list and stack */
    87 extern Cursor cursor[CurLast];
    87 extern Cursor cursor[CurLast];
    88 extern DC dc;					/* global draw context */
    88 extern DC dc;					/* global draw context */
    89 extern Display *dpy;
    89 extern Display *dpy;
    97 void focus(Client *c);			/* focus c if visible && !NULL, or focus top visible */
    97 void focus(Client *c);			/* focus c if visible && !NULL, or focus top visible */
    98 void killclient(const char *arg);	/* kill sel  nicely */
    98 void killclient(const char *arg);	/* kill sel  nicely */
    99 void manage(Window w, XWindowAttributes *wa);	/* manage new client */
    99 void manage(Window w, XWindowAttributes *wa);	/* manage new client */
   100 void resize(Client *c, int x, int y,
   100 void resize(Client *c, int x, int y,
   101 		int w, int h, Bool sizehints);	/* resize with given coordinates c*/
   101 		int w, int h, Bool sizehints);	/* resize with given coordinates c*/
   102 void togglefloating(const char *arg);	/* toggles sel between floating/tiled state */
       
   103 void unban(Client *c);			/* unbans c */
   102 void unban(Client *c);			/* unbans c */
   104 void unmanage(Client *c);		/* destroy c */
   103 void unmanage(Client *c, long state);	/* unmanage c */
   105 void updatesizehints(Client *c);	/* update the size hint variables of c */
   104 void updatesizehints(Client *c);	/* update the size hint variables of c */
   106 void updatetitle(Client *c);		/* update the name of c */
   105 void updatetitle(Client *c);		/* update the name of c */
   107 
   106 
   108 /* draw.c */
   107 /* draw.c */
   109 void drawstatus(void);			/* draw the bar */
   108 void drawstatus(void);			/* draw the bar */
   134 /* tag.c */
   133 /* tag.c */
   135 void compileregs(void);			/* initialize regexps of rules defined in config.h */
   134 void compileregs(void);			/* initialize regexps of rules defined in config.h */
   136 Bool isvisible(Client *c);		/* returns True if client is visible */
   135 Bool isvisible(Client *c);		/* returns True if client is visible */
   137 void settags(Client *c, Client *trans);	/* sets tags of c */
   136 void settags(Client *c, Client *trans);	/* sets tags of c */
   138 void tag(const char *arg);		/* tags sel with arg's index */
   137 void tag(const char *arg);		/* tags sel with arg's index */
       
   138 void togglefloating(const char *arg);	/* toggles sel between floating/tiled state */
   139 void toggletag(const char *arg);	/* toggles sel tags with arg's index */
   139 void toggletag(const char *arg);	/* toggles sel tags with arg's index */
   140 void toggleview(const char *arg);	/* toggles the tag with arg's index (in)visible */
   140 void toggleview(const char *arg);	/* toggles the tag with arg's index (in)visible */
   141 void view(const char *arg);		/* views the tag with arg's index */
   141 void view(const char *arg);		/* views the tag with arg's index */
   142 
   142 
   143 /* util.c */
   143 /* util.c */