aboutsummaryrefslogtreecommitdiff
path: root/src/jwm.h
blob: 131528a24a2ba255a22b244ca0b87ee0598db27b (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
/**
 * @file jwm.h
 * @author Joe Wingbermuehle
 * @date 2004-2006
 *
 * @brief The main JWM header file.
 *
 */

#ifndef JWM_H
#define JWM_H

#include "../config.h"

#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <limits.h>

#ifdef HAVE_STDARG_H
#	include <stdarg.h>
#endif
#ifdef HAVE_SIGNAL_H
#	include <signal.h>
#endif
#ifdef HAVE_UNISTD_H
#	include <unistd.h>
#endif
#ifdef HAVE_TIME_H
#	include <time.h>
#endif
#ifdef HAVE_SYS_WAIT_H
#	include <sys/wait.h>
#endif
#ifdef HAVE_SYS_TIME_H
#	include <sys/time.h>
#endif
#ifdef HAVE_SYS_SELECT_H
#	include <sys/select.h>
#endif

#include <X11/Xlib.h>
#ifdef HAVE_X11_XUTIL_H
#	include <X11/Xutil.h>
#endif
#ifdef HAVE_X11_XRESOURCE_H
#	include <X11/Xresource.h>
#endif
#ifdef HAVE_X11_CURSORFONT_H
#	include <X11/cursorfont.h>
#endif
#ifdef HAVE_X11_XPROTO_H
#	include <X11/Xproto.h>
#endif
#ifdef HAVE_X11_XATOM_H
#	include <X11/Xatom.h>
#endif
#ifdef HAVE_X11_KEYSYM_H
#	include <X11/keysym.h>
#endif

#ifdef USE_XPM
#	include <X11/xpm.h>
#endif
#ifdef USE_PNG
#	include <png.h>
#endif
#ifdef USE_SHAPE
#	include <X11/extensions/shape.h>
#endif
#ifdef USE_XINERAMA
#	include <X11/extensions/Xinerama.h>
#endif
#ifdef USE_XFT
#	ifdef HAVE_FT2BUILD_H
#		include <ft2build.h>
#	endif
#	include <X11/Xft/Xft.h>
#endif
#ifdef USE_XRENDER
#	include <X11/extensions/Xrender.h>
#endif
#ifdef USE_FRIBIDI
#	include <fribidi/fribidi.h>
#	include <fribidi/fribidi_char_sets_utf8.h>
#endif

#define MAX_DESKTOP_COUNT 8

#define MAX_INCLUDE_DEPTH 16

#define MAX_BORDER_WIDTH 32
#define MIN_BORDER_WIDTH 3
#define DEFAULT_BORDER_WIDTH 5

#define MAX_TITLE_HEIGHT 64
#define MIN_TITLE_HEIGHT 2
#define DEFAULT_TITLE_HEIGHT 21

#define MAX_DOUBLE_CLICK_DELTA 32
#define MIN_DOUBLE_CLICK_DELTA 0
#define DEFAULT_DOUBLE_CLICK_DELTA 2

#define MAX_DOUBLE_CLICK_SPEED 2000
#define MIN_DOUBLE_CLICK_SPEED 1
#define DEFAULT_DOUBLE_CLICK_SPEED 400

#define MAX_SNAP_DISTANCE 32
#define MIN_SNAP_DISTANCE 1
#define DEFAULT_SNAP_DISTANCE 5

#define MAX_TRAY_BORDER 32
#define MIN_TRAY_BORDER 0
#define DEFAULT_TRAY_BORDER 1

#define MOVE_DELTA 3

#define SHELL_NAME "/bin/sh"

#define DEFAULT_MENU_TITLE "JWM"

#define DEFAULT_DESKTOP_COUNT 4

#include "debug.h"
#include "jxlib.h"

#endif