94 void ban(Client *c); /* bans c */ |
94 void ban(Client *c); /* bans c */ |
95 void configure(Client *c); /* send synthetic configure event */ |
95 void configure(Client *c); /* send synthetic configure event */ |
96 void detach(Client *c); /* detaches c from global client list */ |
96 void detach(Client *c); /* detaches c from global client list */ |
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 Bool loadprops(Client *c); /* loads client properties */ |
99 Bool getprops(Client *c); /* gets client properties */ |
100 void manage(Window w, XWindowAttributes *wa); /* manage new client */ |
100 void manage(Window w, XWindowAttributes *wa); /* manage new client */ |
101 void resize(Client *c, int x, int y, |
101 void resize(Client *c, int x, int y, |
102 int w, int h, Bool sizehints); /* resize with given coordinates c*/ |
102 int w, int h, Bool sizehints); /* resize with given coordinates c*/ |
103 void saveprops(Client *c); /* saves client properties */ |
103 void setprops(Client *c); /* sets client properties */ |
104 void unban(Client *c); /* unbans c */ |
104 void unban(Client *c); /* unbans c */ |
105 void unmanage(Client *c, long state); /* unmanage c */ |
105 void unmanage(Client *c, long state); /* unmanage c */ |
106 void updatesizehints(Client *c); /* update the size hint variables of c */ |
106 void updatesizehints(Client *c); /* update the size hint variables of c */ |
107 void updatetitle(Client *c); /* update the name of c */ |
107 void updatetitle(Client *c); /* update the name of c */ |
108 |
108 |
112 unsigned int textw(const char *text); /* return the width of text in px*/ |
112 unsigned int textw(const char *text); /* return the width of text in px*/ |
113 |
113 |
114 /* event.c */ |
114 /* event.c */ |
115 void grabkeys(void); /* grab all keys defined in config.h */ |
115 void grabkeys(void); /* grab all keys defined in config.h */ |
116 |
116 |
117 /* layout.c */ |
|
118 void arrange(void); /* arranges all windows depending on the layout in use */ |
|
119 void focusnext(const char *arg); /* focuses next visible client */ |
|
120 void focusprev(const char *arg); /* focuses prev visible client */ |
|
121 const char *getsymbol(void); /* returns symbol of enabled layout */ |
|
122 Bool isfloating(void); /* returns True if floating layout is enabled */ |
|
123 Bool isarrange(void (*func)()); /* returns True if func is the layout function in use */ |
|
124 void initlayouts(void); /* initialize layout array */ |
|
125 void loaddwmprops(void); /* loads dwm properties */ |
|
126 Client *nexttiled(Client *c); /* returns tiled successor of c */ |
|
127 void restack(void); /* restores z layers of all clients */ |
|
128 void savedwmprops(void); /* saves dwm properties */ |
|
129 void setlayout(const char *arg); /* sets layout, NULL means next layout */ |
|
130 void togglebar(const char *arg); /* shows/hides the bar */ |
|
131 void togglemax(const char *arg); /* toggles maximization of floating client */ |
|
132 |
|
133 /* main.c */ |
117 /* main.c */ |
134 Bool gettextprop(Window w, Atom atom, |
118 Bool gettextprop(Window w, Atom atom, |
135 char *text, unsigned int size); /* return text property, UTF-8 compliant */ |
119 char *text, unsigned int size); /* return text property, UTF-8 compliant */ |
136 void updatebarpos(void); /* updates the bar position */ |
120 void updatebarpos(void); /* updates the bar position */ |
137 void quit(const char *arg); /* quit dwm nicely */ |
121 void quit(const char *arg); /* quit dwm nicely */ |
138 int xerror(Display *dsply, XErrorEvent *ee); /* dwm's X error handler */ |
122 int xerror(Display *dsply, XErrorEvent *ee); /* dwm's X error handler */ |
139 |
123 |
140 /* tag.c */ |
124 /* screen.c */ |
141 void applyrules(Client *c); /* applies rules to c */ |
125 void applyrules(Client *c); /* applies rules to c */ |
|
126 void arrange(void); /* arranges all windows depending on the layout in use */ |
142 void compileregs(void); /* initialize regexps of rules defined in config.h */ |
127 void compileregs(void); /* initialize regexps of rules defined in config.h */ |
|
128 void focusnext(const char *arg); /* focuses next visible client */ |
|
129 void focusprev(const char *arg); /* focuses prev visible client */ |
|
130 const char *getsymbol(void); /* returns symbol of enabled layout */ |
|
131 void initlayouts(void); /* initialize layout array */ |
|
132 Bool isarrange(void (*func)()); /* returns True if func is the layout function in use */ |
|
133 Bool isfloating(void); /* returns True if floating layout is enabled */ |
143 Bool isvisible(Client *c); /* returns True if client is visible */ |
134 Bool isvisible(Client *c); /* returns True if client is visible */ |
|
135 void getdwmprops(void); /* gets dwm properties */ |
|
136 Client *nexttiled(Client *c); /* returns tiled successor of c */ |
|
137 void restack(void); /* restores z layers of all clients */ |
|
138 void setlayout(const char *arg); /* sets layout, NULL means next layout */ |
144 void tag(const char *arg); /* tags sel with arg's index */ |
139 void tag(const char *arg); /* tags sel with arg's index */ |
|
140 void togglebar(const char *arg); /* shows/hides the bar */ |
145 void togglefloating(const char *arg); /* toggles sel between floating/tiled state */ |
141 void togglefloating(const char *arg); /* toggles sel between floating/tiled state */ |
|
142 void togglemax(const char *arg); /* toggles maximization of floating client */ |
146 void toggletag(const char *arg); /* toggles sel tags with arg's index */ |
143 void toggletag(const char *arg); /* toggles sel tags with arg's index */ |
147 void toggleview(const char *arg); /* toggles the tag with arg's index (in)visible */ |
144 void toggleview(const char *arg); /* toggles the tag with arg's index (in)visible */ |
148 void view(const char *arg); /* views the tag with arg's index */ |
145 void view(const char *arg); /* views the tag with arg's index */ |
149 |
146 |
150 /* util.c */ |
147 /* util.c */ |