Fix Maximize/Unmaximize in window menu
[wmaker-crm.git] / src / wconfig.h.in
blobf4acba80bea875183eadc6d38dbb4bdf9ae6441d
1 /*
2 * wconfig.h- default configuration and definitions + compile time options
4 * WindowMaker window manager
6 * Copyright (c) 1997-2003 Alfredo K. Kojima
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 #ifndef WMCONFIG_H_
24 #define WMCONFIG_H_
26 #include "config.h"
28 /*** Change this file (wconfig.h) *after* you ran configure ***/
31 * Comment out the following #defines if you want to disable a feature.
32 * Also check the features you can enable through configure.
35 /* If you want animations for iconification, shading, icon arrangement etc. */
36 #define ANIMATIONS
38 /* support for XDND drop in the Dock. Experimental */
39 /*#define XDND*/
41 /* support for Motif window manager (mwm) window hints */
42 #define MWM_HINTS
45 * Undefine BALLOON_TEXT if you don't want balloons for showing extra
46 * information, like window titles that are not fully visible.
48 #define BALLOON_TEXT
51 * If balloons should be shaped or be simple rectangles.
52 * The X server must support the shape extensions and it's support
53 * must be enabled (default).
55 #define SHAPED_BALLOON
58 * Turn on a hack to make mouse and keyboard actions work even if
59 * the NumLock or ScrollLock modifiers are turned on. They might
60 * inflict a performance/memory penalty.
62 * If you're an X expert (knows the implementation of XGrabKey() in X)
63 * and knows that the penalty is small (or not), please tell me.
65 #define NUMLOCK_HACK
68 * define OPTIMIZE_SHAPE if you want the shape setting code to be optimized
69 * for applications that change their shape frequently (like xdaliclock
70 * -shape), removing flickering. If wmaker and your display are on
71 * different machines and the network connection is slow, it is not
72 * recommended.
74 #undef OPTIMIZE_SHAPE
76 /* define CONFIGURE_WINDOW_WHILE_MOVING if you want WindowMaker to send
77 * the synthetic ConfigureNotify event to windows while moving at every
78 * single movement. Default is to send a synthetic ConfigureNotify event
79 * only at the end of window moving, which improves performance.
81 #undef CONFIGURE_WINDOW_WHILE_MOVING
83 /* disable/enable workspace indicator in the dock */
84 #undef WS_INDICATOR
87 * define HIDDENDOT if you want a dot to be shown in the application icon
88 * of applications that are hidden.
90 #define HIDDENDOT
93 * Ignores the PPosition hint from clients. This is needed for some
94 * programs that have buggy implementations of such hint and place
95 * themselves in strange locations.
97 #undef IGNORE_PPOSITION
100 * The following options WILL NOT BE MADE RUN-TIME. Please do not request.
101 * They will only add unneeded bloat.
105 * define SHADOW_RESIZEBAR if you want a resizebar with shadows like in
106 * AfterStep, instead of the default Openstep look.
107 * NEXTSTEP 3.3 also does not have these shadows.
109 #undef SHADOW_RESIZEBAR
111 #define NORMAL_ICON_KABOOM
114 * #define if you want the window creation animation when superfluous
115 * is enabled.
117 #undef WINDOW_BIRTH_ZOOM
120 * Some of the following options can be configured in the preference files,
121 * but if for some reason they can't, these are their defaults.
123 * There are also some options that can only be configured here, at compile time.
126 /* list of paths to look for the config files, searched in order of appearance */
127 #define DEF_CONFIG_PATHS "~/GNUstep/Library/WindowMaker:"PKGDATADIR
128 #define DEF_MENU_FILE "menu"
130 /* name of the script to execute at startup */
131 #define DEF_INIT_SCRIPT "autostart"
132 #define DEF_EXIT_SCRIPT "exitscript"
133 #define DEFAULTS_DIR "Defaults"
135 #ifdef USE_TIFF
136 #define DEF_BUTTON_IMAGES PKGDATADIR"/buttons.tiff"
137 #else
138 #define DEF_BUTTON_IMAGES PKGDATADIR"/buttons.xpm"
139 #endif
141 /* the file of the system wide submenu to be forced into the main menu */
142 #define GLOBAL_PREAMBLE_MENU_FILE "GlobalMenu.pre"
143 #define GLOBAL_EPILOGUE_MENU_FILE "GlobalMenu.post"
145 /* pixmap path */
146 #define DEF_PIXMAP_PATHS \
147 "(\"~/pixmaps\",\"~/GNUstep/Library/WindowMaker/Pixmaps\",\""PIXMAPDIR"\")"
149 #ifdef USER_MENU
150 #define GLOBAL_USER_MENU_PATH PKGDATADIR"/UserMenus"
151 #define DEF_USER_MENU_PATHS \
152 "~/GNUstep/Library/WindowMaker/UserMenus:"GLOBAL_USER_MENU_PATH
153 #endif
155 /* icon path */
156 #define DEF_ICON_PATHS \
157 "(\"~/pixmaps\",\"~/GNUstep/Library/Icons\",\"/usr/include/X11/pixmaps/\",\""PIXMAPDIR"\")"
159 /* window title to use for untitled windows */
160 #define DEF_WINDOW_TITLE "Untitled"
162 /* default style */
163 #define DEF_FRAME_COLOR "white"
165 /* default fonts */
166 #define DEF_TITLE_FONT "\"Trebuchet MS,sans serif:bold:pixelsize=12\""
167 #define DEF_MENU_TITLE_FONT "\"Trebuchet MS,sans serif:bold:pixelsize=12\""
168 #define DEF_MENU_ENTRY_FONT "\"Trebuchet MS,sans serif:pixelsize=12\""
169 #define DEF_ICON_TITLE_FONT "\"Arial,sans serif:pixelsize=9\""
170 #define DEF_CLIP_TITLE_FONT "\"Verdana:bold:pixelsize=10\""
171 #define DEF_INFO_TEXT_FONT "\"Trebuchet MS,sans serif:pixelsize=12\""
172 #define DEF_WORKSPACE_NAME_FONT "\"Trebuchet MS,sans serif:pixelsize=24\""
174 /* line width of the move/resize frame */
175 #define DEF_FRAME_THICKNESS 1
177 #define DEF_WINDOW_TITLE_EXTEND_SPACE "0"
178 #define DEF_MENU_TITLE_EXTEND_SPACE "0"
179 #define DEF_MENU_TEXT_EXTEND_SPACE "0"
180 #define TITLEBAR_EXTEND_SPACE 4
182 #define DEF_XPM_CLOSENESS 40000
184 /* default position of application menus */
185 #define DEF_APPMENU_X 10
186 #define DEF_APPMENU_Y 10
188 /* calculate window edge resistance from edge resistance */
189 #define WIN_RESISTANCE(x) (((x)*20)/30)
191 /* Window level where icons reside */
192 #define NORMAL_ICON_LEVEL WMNormalLevel
194 /* do not divide main menu and submenu in different tiers,
195 * opposed to OpenStep */
196 #define SINGLE_MENULEVEL
198 /* max. time to spend doing animations in seconds. If the animation
199 * time exceeds this value, it is immediately finished. Usefull for
200 * moments of high-load. DO NOT set *_DELAY_{Z,T,F} to zero!
202 #define MAX_ANIMATION_TIME 1
203 /* Zoom animation */
204 #define MINIATURIZE_ANIMATION_FRAMES_Z 7
205 #define MINIATURIZE_ANIMATION_STEPS_Z 16
206 #define MINIATURIZE_ANIMATION_DELAY_Z 10000
207 /* Twist animation */
208 #define MINIATURIZE_ANIMATION_FRAMES_T 12
209 #define MINIATURIZE_ANIMATION_STEPS_T 16
210 #define MINIATURIZE_ANIMATION_DELAY_T 20000
211 #define MINIATURIZE_ANIMATION_TWIST_T 0.5
212 /* Flip animation */
213 #define MINIATURIZE_ANIMATION_FRAMES_F 12
214 #define MINIATURIZE_ANIMATION_STEPS_F 16
215 #define MINIATURIZE_ANIMATION_DELAY_F 20000
216 #define MINIATURIZE_ANIMATION_TWIST_F 0.5
218 /* delays in ms...*/
219 #define BALLOON_DELAY 1000 /* ...before balloon is shown */
220 #define MENU_SELECT_DELAY 200 /* ...for menu item selection hysteresis */
221 #define MENU_JUMP_BACK_DELAY 400 /* ...for jumpback of scrolled menus */
223 /* animation speed constants */
224 #define ICON_SLIDE_SLOWDOWN_UF 1
225 #define ICON_SLIDE_DELAY_UF 0
226 #define ICON_SLIDE_STEPS_UF 50
228 #define ICON_SLIDE_SLOWDOWN_F 3
229 #define ICON_SLIDE_DELAY_F 0
230 #define ICON_SLIDE_STEPS_F 50
232 #define ICON_SLIDE_SLOWDOWN_M 5
233 #define ICON_SLIDE_DELAY_M 0
234 #define ICON_SLIDE_STEPS_M 30
236 #define ICON_SLIDE_SLOWDOWN_S 10
237 #define ICON_SLIDE_DELAY_S 0
238 #define ICON_SLIDE_STEPS_S 20
240 #define ICON_SLIDE_SLOWDOWN_US 20
241 #define ICON_SLIDE_DELAY_US 1
242 #define ICON_SLIDE_STEPS_US 10
244 /* menu scrolling */
245 #define MENU_SCROLL_STEPS_UF 14
246 #define MENU_SCROLL_DELAY_UF 1
248 #define MENU_SCROLL_STEPS_F 10
249 #define MENU_SCROLL_DELAY_F 5
251 #define MENU_SCROLL_STEPS_M 6
252 #define MENU_SCROLL_DELAY_M 5
254 #define MENU_SCROLL_STEPS_S 4
255 #define MENU_SCROLL_DELAY_S 6
257 #define MENU_SCROLL_STEPS_US 1
258 #define MENU_SCROLL_DELAY_US 8
260 /* shade animation */
261 #define SHADE_STEPS_UF 5
262 #define SHADE_DELAY_UF 0
264 #define SHADE_STEPS_F 10
265 #define SHADE_DELAY_F 0
267 #define SHADE_STEPS_M 15
268 #define SHADE_DELAY_M 0
270 #define SHADE_STEPS_S 30
271 #define SHADE_DELAY_S 0
273 #define SHADE_STEPS_US 40
274 #define SHADE_DELAY_US 10
276 /* workspace name on switch display */
277 #define WORKSPACE_NAME_FADE_DELAY 30
278 #define WORKSPACE_NAME_DELAY 400
280 /* Delay when cycling colors of selected icons. */
281 #define COLOR_CYCLE_DELAY 200
283 /* size of the pieces in the undocked icon explosion */
284 #define ICON_KABOOM_PIECE_SIZE 4
287 * Position increment for smart placement: >= 1
288 * Raise these values if it's too slow for you
290 #define PLACETEST_HSTEP 8
291 #define PLACETEST_VSTEP 8
293 #define DOCK_EXTRA_SPACE 0
295 /* Vicinity in which an icon can be attached to the clip */
296 #define CLIP_ATTACH_VICINITY 1
297 #define CLIP_BUTTON_SIZE 23
299 /* The amount of space (in multiples of the icon size)
300 * a docked icon must be dragged out to detach it */
301 #define DOCK_DETTACH_THRESHOLD 3
303 /* Delay (in ms) after which the clip will autocollapse when leaved */
304 #define AUTO_COLLAPSE_DELAY 1000
306 /* Delay (in ms) after which the clip will autoexpand when entered.
307 * Set this to zero if you want instant expanding. */
308 #define AUTO_EXPAND_DELAY 600
310 /* Delay (in ms) after which the clip will be lowered when leaved */
311 #define AUTO_LOWER_DELAY 1000
313 /* Delay (in ms) after which the clip will be raised when entered.
314 * Set this to zero if you want instant raise. */
315 #define AUTO_RAISE_DELAY 600
317 /* Max. number of icons the dock and clip can have */
318 #define DOCK_MAX_ICONS 32
320 /* blink interval when invoking a menu item */
321 #define MENU_BLINK_DELAY 60000
322 #define MENU_BLINK_COUNT 2
323 #define CURSOR_BLINK_RATE 300
325 /* how many pixels to move before dragging windows and other objects */
326 #define MOVE_THRESHOLD 5
327 #define HRESIZE_THRESHOLD 3
329 #define MAX_WORKSPACENAME_WIDTH 64
330 /* max width of window title in window list */
331 #define MAX_WINDOWLIST_WIDTH 160
333 #ifndef HAVE_INOTIFY
334 /* Check defaults database for changes every this many milliseconds */
335 #define DEFAULTS_CHECK_INTERVAL 2000
336 #endif
338 #define KEY_CONTROL_WINDOW_WEIGHT 1
340 /* don't put titles in miniwindows */
341 #undef NO_MINIWINDOW_TITLES
343 #define FRAME_BORDER_COLOR "black"
344 #define FRAME_SELECTED_BORDER_COLOR "white"
346 /* for boxes with high mouse sampling rates (SGI) */
347 #define DELAY_BETWEEN_MOUSE_SAMPLING 10
350 * You should not modify the following values, unless you know
351 * what you're doing.
354 /* number of window shortcuts */
355 #define MAX_WINDOW_SHORTCUTS 10
356 #define WM_PI 3.14159265358979323846
357 #define MIN_TITLEFONT_HEIGHT(h) ((h)>14 ? (h) : 14)
358 #define TITLEBAR_HEIGHT 18 /* window's titlebar height */
359 #define RESIZEBAR_HEIGHT 8 /* height of the resizebar */
360 #define FRAME_BORDER_WIDTH 1 /* width of window border for frames */
361 #define RESIZEBAR_MIN_WIDTH 20 /* min width of handles-corner_width */
362 #define RESIZEBAR_CORNER_WIDTH 28 /* width of the corner of resizebars */
363 #define MENU_INDICATOR_SPACE 12
364 #define MIN_WINDOW_SIZE 5 /* minimum size for windows */
365 #define ICON_WIDTH 64 /* size of the icon window */
366 #define ICON_HEIGHT 64
367 #define ICON_BORDER_WIDTH 2
368 #define MAX_ICON_WIDTH 60 /* size of the icon pixmap */
369 #define MAX_ICON_HEIGHT 48
370 #define MAX_WORKSPACES 100
371 #define MAX_MENU_TEXT_LENGTH 512
372 #define MAX_RESTART_ARGS 16
373 #define MAX_DEAD_PROCESSES 128
374 #define MAXLINE 1024
376 #ifdef _MAX_PATH
377 # define DEFAULT_PATH_MAX _MAX_PATH
378 #else
379 # define DEFAULT_PATH_MAX 512
380 #endif
382 /* some rules */
383 #ifndef SHAPE
384 #undef SHAPED_BALLOON
385 #endif
387 #ifdef XKB_MODELOCK
388 #define KEEP_XKB_LOCK_STATUS
389 /* This is a hidden feature.
390 * Choose just one of LANGUAGE_* hints.
391 * Icon can be changed in def_pixmaps.h.
392 * More icons are welcome.
394 #define XKB_BUTTON_HINT
395 #undef LANGUAGE_TH
396 #undef LANGUAGE_SK
397 #endif
399 #if defined(HAVE_LIBINTL_H) && defined(I18N)
400 #include <libintl.h>
401 #define _(text) gettext(text)
402 /* Use N_() in initializers, it will make xgettext pick
403 * the string up for translation
405 #define N_(text) (text)
406 #if defined(MENU_TEXTDOMAIN)
407 #define M_(text) dgettext(MENU_TEXTDOMAIN, text)
408 #else
409 #define M_(text) (text)
410 #endif
411 #else
412 #define _(text) (text)
413 #define N_(text) (text)
414 #define M_(text) (text)
415 #endif
417 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
418 #define INLINE inline
419 #else
420 #define INLINE
421 #endif
423 #endif /* WMCONFIG_H_ */