diff options
Diffstat (limited to 'wm.h')
| -rw-r--r-- | wm.h | 10 |
1 files changed, 5 insertions, 5 deletions
| @@ -10,7 +10,6 @@ | |||
| 10 | #include <X11/Xutil.h> | 10 | #include <X11/Xutil.h> |
| 11 | 11 | ||
| 12 | /* atoms */ | 12 | /* atoms */ |
| 13 | enum { WMState, WMProtocols, WMDelete, WMLast }; | ||
| 14 | enum { NetSupported, NetWMName, NetLast }; | 13 | enum { NetSupported, NetWMName, NetLast }; |
| 15 | 14 | ||
| 16 | /* cursor */ | 15 | /* cursor */ |
| @@ -25,7 +24,6 @@ typedef struct Key Key; | |||
| 25 | struct Client { | 24 | struct Client { |
| 26 | char name[256]; | 25 | char name[256]; |
| 27 | char tag[256]; | 26 | char tag[256]; |
| 28 | int proto; | ||
| 29 | unsigned int border; | 27 | unsigned int border; |
| 30 | Bool fixedsize; | 28 | Bool fixedsize; |
| 31 | Window win; | 29 | Window win; |
| @@ -46,7 +44,7 @@ struct Key { | |||
| 46 | 44 | ||
| 47 | extern Display *dpy; | 45 | extern Display *dpy; |
| 48 | extern Window root, barwin; | 46 | extern Window root, barwin; |
| 49 | extern Atom wm_atom[WMLast], net_atom[NetLast]; | 47 | extern Atom net_atom[NetLast]; |
| 50 | extern Cursor cursor[CurLast]; | 48 | extern Cursor cursor[CurLast]; |
| 51 | extern XRectangle rect, barrect; | 49 | extern XRectangle rect, barrect; |
| 52 | extern Bool running; | 50 | extern Bool running; |
| @@ -57,20 +55,22 @@ extern int screen, sel_screen; | |||
| 57 | extern char *bartext, tag[256]; | 55 | extern char *bartext, tag[256]; |
| 58 | 56 | ||
| 59 | extern Brush brush; | 57 | extern Brush brush; |
| 60 | extern Client *client; | 58 | extern Client *clients; |
| 61 | 59 | ||
| 62 | /* bar.c */ | 60 | /* bar.c */ |
| 63 | extern void draw_bar(); | 61 | extern void draw_bar(); |
| 64 | 62 | ||
| 65 | /* cmd.c */ | 63 | /* cmd.c */ |
| 66 | extern void run(char *arg); | 64 | extern void run(char *arg); |
| 65 | extern void quit(char *arg); | ||
| 67 | 66 | ||
| 68 | /* client.c */ | 67 | /* client.c */ |
| 69 | extern Client *create_client(Window w, XWindowAttributes *wa); | 68 | extern Client *create_client(Window w, XWindowAttributes *wa); |
| 70 | extern void manage(Client *c); | 69 | extern void manage(Client *c); |
| 70 | extern Client * getclient(Window w); | ||
| 71 | 71 | ||
| 72 | /* key.c */ | 72 | /* key.c */ |
| 73 | extern void update_keys(); | 73 | extern void update_keys(); |
| 74 | extern void keypress(XEvent *e); | ||
| 74 | 75 | ||
| 75 | /* wm.c */ | 76 | /* wm.c */ |
| 76 | extern int win_proto(Window w); | ||
