summaryrefslogtreecommitdiffstats
path: root/tools/aewm-drakx/aewm.h
blob: 1f2f11f1ff645bc7b5f3c51a9ec514968d8c2fb5 (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
33
34
/* 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;

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

/* client.c */
extern Client *find_client(Window);
extern void set_focus_on(Window w);
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 *);


#define wm_state  XInternAtom(dpy, "WM_STATE", False)