-extern void quit(Arg *arg); /* quit dwm nicely */
-extern void sendevent(Window w, Atom a, long value); /* send synthetic event to w */
-extern int xerror(Display *dsply, XErrorEvent *ee); /* dwm's X error handler */
-
-/* tag.c */
-extern void compileregs(void); /* initialize regexps of rules defined in config.h */
-extern Bool isvisible(Client *c); /* returns True if client is visible */
-extern void settags(Client *c, Client *trans); /* sets tags of c */
-extern void tag(Arg *arg); /* tags c with arg's index */
-extern void toggletag(Arg *arg); /* toggles c tags with arg's index */
-extern void toggleview(Arg *arg); /* toggles the tag with arg's index (in)visible */
-extern void view(Arg *arg); /* views the tag with arg's index */
+Bool gettextprop(Window w, Atom atom,
+ char *text, unsigned int size); /* return text property, UTF-8 compliant */
+void quit(const char *arg); /* quit dwm nicely */
+int xerror(Display *dsply, XErrorEvent *ee); /* dwm's X error handler */
+
+/* screen.c */
+void applyrules(Client *c); /* applies rules to c */
+void arrange(void); /* arranges all windows depending on the layout in use */
+void compileregs(void); /* initialize regexps of rules defined in config.h */
+void focusnext(const char *arg); /* focuses next visible client */
+void focusprev(const char *arg); /* focuses prev visible client */
+const char *getsymbol(void); /* returns symbol of enabled layout */
+void initlayouts(void); /* initialize layout array */
+Bool isarrange(void (*func)()); /* returns True if func is the layout function in use */
+Bool isfloating(void); /* returns True if floating layout is enabled */
+Bool isvisible(Client *c); /* returns True if client is visible */
+Client *nexttiled(Client *c); /* returns tiled successor of c */
+void restack(void); /* restores z layers of all clients */
+void setlayout(const char *arg); /* sets layout, NULL means next layout */
+void tag(const char *arg); /* tags sel with arg's index */
+void togglefloating(const char *arg); /* toggles sel between floating/tiled state */
+void togglemax(const char *arg); /* toggles maximization of floating client */
+void toggletag(const char *arg); /* toggles sel tags with arg's index */
+void toggleview(const char *arg); /* toggles the tag with arg's index (in)visible */
+void view(const char *arg); /* views the tag with arg's index */