94 extern Layout *lt; |
94 extern Layout *lt; |
95 extern Window root, barwin; |
95 extern Window root, barwin; |
96 |
96 |
97 /* client.c */ |
97 /* client.c */ |
98 void attach(Client *c); /* attaches c to global client list */ |
98 void attach(Client *c); /* attaches c to global client list */ |
|
99 void ban(Client *c); /* bans c */ |
99 void configure(Client *c); /* send synthetic configure event */ |
100 void configure(Client *c); /* send synthetic configure event */ |
100 void detach(Client *c); /* detaches c from global client list */ |
101 void detach(Client *c); /* detaches c from global client list */ |
101 void focus(Client *c); /* focus c if visible && !NULL, or focus top visible */ |
102 void focus(Client *c); /* focus c if visible && !NULL, or focus top visible */ |
102 void killclient(const char *arg); /* kill sel nicely */ |
103 void killclient(const char *arg); /* kill sel nicely */ |
103 void manage(Window w, XWindowAttributes *wa); /* manage new client */ |
104 void manage(Window w, XWindowAttributes *wa); /* manage new client */ |
104 void resize(Client *c, int x, int y, |
105 void resize(Client *c, int x, int y, |
105 int w, int h, Bool sizehints); /* resize with given coordinates c*/ |
106 int w, int h, Bool sizehints); /* resize with given coordinates c*/ |
106 void togglefloating(const char *arg); /* toggles sel between floating/tiled state */ |
107 void togglefloating(const char *arg); /* toggles sel between floating/tiled state */ |
|
108 void unban(Client *c); /* unbans c */ |
|
109 void unmanage(Client *c); /* destroy c */ |
107 void updatesizehints(Client *c); /* update the size hint variables of c */ |
110 void updatesizehints(Client *c); /* update the size hint variables of c */ |
108 void updatetitle(Client *c); /* update the name of c */ |
111 void updatetitle(Client *c); /* update the name of c */ |
109 void unmanage(Client *c); /* destroy c */ |
|
110 |
112 |
111 /* draw.c */ |
113 /* draw.c */ |
112 void drawstatus(void); /* draw the bar */ |
114 void drawstatus(void); /* draw the bar */ |
113 void drawtext(const char *text, unsigned long col[ColLast]); /* draw text */ |
115 void drawtext(const char *text, unsigned long col[ColLast]); /* draw text */ |
114 unsigned int textw(const char *text); /* return the width of text in px*/ |
116 unsigned int textw(const char *text); /* return the width of text in px*/ |