dwm.h
changeset 941 8c93b982f22e
parent 939 a1ac5930ba2f
child 944 bd5cf635c601
equal deleted inserted replaced
940:8241aba895d8 941:8c93b982f22e
    74 	} font;
    74 	} font;
    75 } DC; /* draw context */
    75 } DC; /* draw context */
    76 
    76 
    77 typedef struct {
    77 typedef struct {
    78 	const char *symbol;
    78 	const char *symbol;
    79 	void (*arrange)(const char *);
    79 	void (*arrange)(void);
    80 } Layout;
    80 } Layout;
    81 
    81 
    82 extern const char *tags[];			/* all tags */
    82 extern const char *tags[];			/* all tags */
    83 extern char stext[256];				/* status text */
    83 extern char stext[256];				/* status text */
    84 extern int screen, sx, sy, sw, sh;		/* screen geometry */
    84 extern int screen, sx, sy, sw, sh;		/* screen geometry */
   118 
   118 
   119 /* event.c */
   119 /* event.c */
   120 void grabkeys(void);			/* grab all keys defined in config.h */
   120 void grabkeys(void);			/* grab all keys defined in config.h */
   121 
   121 
   122 /* layout.c */
   122 /* layout.c */
   123 void floating(const char *arg);		/* arranges all windows floating */
       
   124 void focusclient(const char *arg);	/* focuses next(1)/previous(-1) visible client */
   123 void focusclient(const char *arg);	/* focuses next(1)/previous(-1) visible client */
   125 void initlayouts(void);			/* initialize layout array */
   124 void initlayouts(void);			/* initialize layout array */
   126 Client *nexttiled(Client *c);		/* returns tiled successor of c */
   125 Client *nexttiled(Client *c);		/* returns tiled successor of c */
   127 void restack(void);			/* restores z layers of all clients */
   126 void restack(void);			/* restores z layers of all clients */
   128 void setlayout(const char *arg);	/* sets layout, NULL means next layout */
   127 void setlayout(const char *arg);	/* sets layout, NULL means next layout */
   129 void togglebar(const char *arg);	/* shows/hides the bar */
   128 void togglebar(const char *arg);	/* shows/hides the bar */
   130 void togglemax(const char *arg);	/* toggles maximization of floating client */
       
   131 void zoom(const char *arg);		/* zooms the focused client to master area, arg is ignored */
       
   132 
   129 
   133 /* main.c */
   130 /* main.c */
   134 void updatebarpos(void);		/* updates the bar position */
   131 void updatebarpos(void);		/* updates the bar position */
   135 void quit(const char *arg);		/* quit dwm nicely */
   132 void quit(const char *arg);		/* quit dwm nicely */
   136 int xerror(Display *dsply, XErrorEvent *ee);	/* dwm's X error handler */
   133 int xerror(Display *dsply, XErrorEvent *ee);	/* dwm's X error handler */