dwm-meillo

annotate wm.h @ 9:d567f430a81d

fixed several stuff (gridwm gets better and better)
author Anselm R. Garbe <garbeam@wmii.de>
date Tue, 11 Jul 2006 12:52:57 +0200
parents 7066ff2fe8bc
children 703255003abb
rev   line source
garbeam@0 1 /*
garbeam@0 2 * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
garbeam@0 3 * See LICENSE file for license details.
garbeam@0 4 */
garbeam@0 5
garbeam@3 6 #include "config.h"
garbeam@2 7 #include "draw.h"
garbeam@2 8 #include "util.h"
garbeam@2 9
garbeam@0 10 #include <X11/Xutil.h>
garbeam@0 11
garbeam@5 12 /* atoms */
garbeam@0 13 enum { NetSupported, NetWMName, NetLast };
garbeam@0 14
garbeam@5 15 /* cursor */
garbeam@0 16 enum { CurNormal, CurResize, CurMove, CurInput, CurLast };
garbeam@0 17
garbeam@5 18 /* rects */
garbeam@0 19 enum { RFloat, RGrid, RLast };
garbeam@0 20
garbeam@0 21 typedef struct Client Client;
garbeam@8 22 typedef struct Key Key;
garbeam@0 23
garbeam@0 24 struct Client {
garbeam@0 25 char name[256];
garbeam@7 26 char tag[256];
garbeam@5 27 unsigned int border;
garbeam@5 28 Bool fixedsize;
garbeam@0 29 Window win;
garbeam@0 30 Window trans;
garbeam@0 31 Window title;
garbeam@0 32 XSizeHints size;
garbeam@0 33 XRectangle r[RLast];
garbeam@0 34 Client *next;
garbeam@5 35 Client *snext;
garbeam@0 36 };
garbeam@0 37
garbeam@8 38 struct Key {
garbeam@8 39 unsigned long mod;
garbeam@8 40 KeySym keysym;
garbeam@8 41 void (*func)(char *arg);
garbeam@8 42 char *arg;
garbeam@8 43 };
garbeam@8 44
garbeam@0 45 extern Display *dpy;
garbeam@5 46 extern Window root, barwin;
garbeam@9 47 extern Atom net_atom[NetLast];
garbeam@0 48 extern Cursor cursor[CurLast];
garbeam@5 49 extern XRectangle rect, barrect;
garbeam@5 50 extern Bool running;
garbeam@7 51 extern Bool grid;
garbeam@5 52 extern void (*handler[LASTEvent]) (XEvent *);
garbeam@0 53
garbeam@3 54 extern int screen, sel_screen;
garbeam@7 55 extern char *bartext, tag[256];
garbeam@3 56
garbeam@3 57 extern Brush brush;
garbeam@9 58 extern Client *clients;
garbeam@3 59
garbeam@5 60 /* bar.c */
garbeam@5 61 extern void draw_bar();
garbeam@5 62
garbeam@8 63 /* cmd.c */
garbeam@8 64 extern void run(char *arg);
garbeam@9 65 extern void quit(char *arg);
garbeam@8 66
garbeam@5 67 /* client.c */
garbeam@5 68 extern Client *create_client(Window w, XWindowAttributes *wa);
garbeam@5 69 extern void manage(Client *c);
garbeam@9 70 extern Client * getclient(Window w);
garbeam@5 71
garbeam@8 72 /* key.c */
garbeam@8 73 extern void update_keys();
garbeam@9 74 extern void keypress(XEvent *e);
garbeam@8 75
garbeam@0 76 /* wm.c */