00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #define TRUE 1
00012 #define FALSE 0
00013 #define WINWIDTH 640
00014 #define WINHEIGHT 480
00015 #define BORDERX 30
00016 #define BORDERY 30
00017 #define BORDER 50
00018 #define ALIVE_MASK (SubstructureNotifyMask | KeyPressMask | PointerMotionMask)
00019
00020
00021 #define FATAL -1
00022 #define WARNING -2
00023
00024
00025
00026 typedef struct _disp
00027 {
00028 Window win;
00029 Display *dpy;
00030 int screen;
00031 Window root;
00032 char *dname;
00033
00034 long bg;
00035
00036 XColor bg_xcolor;
00037
00038 GC pixcolour_gc[256];
00039 Atom kill_atom, protocol_atom;
00040 Colormap cmap;
00041 }
00042 disp;