summaryrefslogtreecommitdiffstats
path: root/tools/aewm-drakx/aewm.h
blob: d5c8a8b0e2a1d2be1b475026db9eb58820e3b7b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* aewm - a minimalistic X11 window manager. ------- vim:sw=4:et
 * Copyright (c) 1998-2001 Decklin Foster <decklin@red-bean.com>
 * Free software! Please see README for details and license.  */

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <X11/Xutil.h>

typedef struct _Client Client;

struct _Client {
    Client	*next;
    Window	window;
};

extern Display *dpy;
extern Atom wm_state;

/* events.c */
extern void do_event_loop(void);

/* client.c */
extern Client *find_client(Window);
extern void set_wm_state(Client *, int);
extern void remove_client(Client *);
extern void make_new_client(Window);

/* misc.c */
void err(const char *, ...);
int handle_xerror(Display *, XErrorEvent *);