- Removed legacy OFFIX_DND support code
[wmaker-crm.git] / src / wconfig.h.in
blobb6f862247032ad00a1ab7b2b76341912e27eefdb
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 *--------------------------------------------------------------------
32 * Feature Selection
34 * Comment out the following #defines if you want to
35 * disable a feature.
36 * Also check the features you can enable through configure.
37 *--------------------------------------------------------------------
42 * #undefine if you dont want texture plugin support or your system have
43 * some sort of problem with them.
45 #define TEXTURE_PLUGIN
47 #ifdef TEXTURE_PLUGIN
48 #undef DRAWSTRING_PLUGIN
49 #endif
52 /* undefine ANIMATIONS if you don't want animations for iconification,
53 * shading, icon arrangement etc. */
54 #define ANIMATIONS
58 * undefine USECPP if you don't want your config files to be preprocessed
59 * by cpp
61 #define USECPP
63 /* #define CPP_PATH @CPP_PATH@ */
66 #define NETWM_HINTS
69 * support for XDND drop in the Dock. Experimental
71 #ifdef GNOME_STUFF
72 #define XDND
73 #endif
76 * support for Motif window manager (mwm) window hints
78 #define MWM_HINTS
82 * Undefine BALLOON_TEXT if you don't want balloons for showing extra
83 * information, like window titles that are not fully visible.
85 #define BALLOON_TEXT
88 * If balloons should be shaped or be simple rectangles.
89 * The X server must support the shape extensions and it's support
90 * must be enabled (default).
92 #define SHAPED_BALLOON
96 * Define NO_EMERGENCY_AUTORESTART if you don't want another window manager
97 * automatically started when WindowMaker crashes. The X session will die
98 * in some cases if wmaker crashes and autorestart is disabled.
100 #undef NO_EMERGENCY_AUTORESTART
103 * The window manager that is autorestarted
105 #define FALLBACK_WINDOWMANAGER "blackbox"
108 * Turn on a hack to make mouse and keyboard actions work even if
109 * the NumLock or ScrollLock modifiers are turned on. They might
110 * inflict a performance/memory penalty.
112 * If you're an X expert (knows the implementation of XGrabKey() in X)
113 * and knows that the penalty is small (or not), please tell me.
115 #define NUMLOCK_HACK
120 * define OPTIMIZE_SHAPE if you want the shape setting code to be optimized
121 * for applications that change their shape frequently (like xdaliclock
122 * -shape), removing flickering. If wmaker and your display are on
123 * different machines and the network connection is slow, it is not
124 * recommended.
126 #undef OPTIMIZE_SHAPE
128 /* define CONFIGURE_WINDOW_WHILE_MOVING if you want WindowMaker to send
129 * the synthetic ConfigureNotify event to windows while moving at every
130 * single movement. Default is to send a synthetic ConfigureNotify event
131 * only at the end of window moving, which improves performance.
133 #undef CONFIGURE_WINDOW_WHILE_MOVING
137 * disable/enable workspace indicator in the dock
139 #undef WS_INDICATOR
143 * define HIDDENDOT if you want a dot to be shown in the application icon
144 * of applications that are hidden.
146 #define HIDDENDOT
150 * Ignores the PPosition hint from clients. This is needed for some
151 * programs that have buggy implementations of such hint and place
152 * themselves in strange locations.
154 #undef IGNORE_PPOSITION
158 * Do not scale application icon and miniwindow icon images.
160 #undef DONT_SCALE_ICONS
167 #define SILLYNESS
174 *..........................................................................
175 * The following options WILL NOT BE MADE RUN-TIME. Please do not request.
176 * They will only add unneeded bloat.
177 *..........................................................................
181 * define SHADOW_RESIZEBAR if you want a resizebar with shadows like in
182 * AfterStep, instead of the default Openstep look.
183 * NEXTSTEP 3.3 also does not have these shadows.
185 #undef SHADOW_RESIZEBAR
188 * Define DEMATERIALIZE_ICON if you want the undocked icon animation
189 * to be a progressive disaparison animation.
190 * This will cause all application icons to be created with Save Under
191 * enable.
193 #undef DEMATERIALIZE_ICON
196 * Define ICON_KABOOM_EXTRA if you want extra fancy icon undocking
197 * explosion animation.
199 #undef ICON_KABOOM_EXTRA
202 * #define if you want the window creation animation when superfluous
203 * is enabled. Only enable one of them.
205 #undef WINDOW_BIRTH_ZOOM
207 #undef WINDOW_BIRTH_ZOOM2
210 * whether arrow drawing in clip buttons should be gradiented
212 #undef GRADIENT_CLIP_ARROWS
216 *--------------------------------------------------------------------
217 * Default Configuration
219 * Some of the following options can be configured in
220 * the preference files, but if for some reason, they can't
221 * be used, these defaults will be.
222 * There are also some options that can only be configured here,
223 * at compile time.
224 *--------------------------------------------------------------------
227 /* list of paths to look for the config files, searched in order
228 * of appearance */
229 #define DEF_CONFIG_PATHS \
230 "~/GNUstep/Library/WindowMaker:"PKGDATADIR
232 #define DEF_MENU_FILE "menu"
234 /* name of the script to execute at startup */
235 #define DEF_INIT_SCRIPT "autostart"
237 #define DEF_EXIT_SCRIPT "exitscript"
239 #define DEFAULTS_DIR "Defaults"
241 #ifdef USE_TIFF
242 #define DEF_BUTTON_IMAGES PKGDATADIR"/buttons.tiff"
243 #else
244 #define DEF_BUTTON_IMAGES PKGDATADIR"/buttons.xpm"
245 #endif
247 /* the file of the system wide submenu to be forced into the main menu */
248 #define GLOBAL_PREAMBLE_MENU_FILE "GlobalMenu.pre"
249 #define GLOBAL_EPILOGUE_MENU_FILE "GlobalMenu.post"
252 /* pixmap path */
253 #define DEF_PIXMAP_PATHS \
254 "(\"~/pixmaps\",\"~/GNUstep/Library/WindowMaker/Pixmaps\",\""PIXMAPDIR"\")"
256 #ifdef USER_MENU
257 #define GLOBAL_USER_MENU_PATH PKGDATADIR"/UserMenus"
258 #define DEF_USER_MENU_PATHS \
259 "~/GNUstep/Library/WindowMaker/UserMenus:"GLOBAL_USER_MENU_PATH
260 #endif
262 /* icon path */
263 #define DEF_ICON_PATHS \
264 "(\"~/pixmaps\",\"~/GNUstep/Library/Icons\",\"/usr/include/X11/pixmaps/\",\""PIXMAPDIR"\")"
267 /* window title to use for untitled windows */
268 #define DEF_WINDOW_TITLE "Untitled"
270 /* default style */
271 #define DEF_FRAME_COLOR "white"
274 #ifdef I18N
275 #define DEF_TITLE_FONT "\"-*-*-medium-r-normal--14-*\""
276 #define DEF_MENU_TITLE_FONT "\"-*-*-medium-r-normal--14-*\""
277 #define DEF_MENU_ENTRY_FONT "\"-*-*-medium-r-normal--14-*\""
278 #define DEF_ICON_TITLE_FONT "\"-*-*-medium-r-normal--10-*\""
279 #define DEF_CLIP_TITLE_FONT "\"-*-*-medium-r-normal--10-*\""
280 #define DEF_INFO_TEXT_FONT "\"-*-*-medium-r-normal--14-*\""
281 #define DEF_ADDITONAL_FONT "-*-*-medium-r-normal--12-*"
283 #define DEF_WORKSPACE_NAME_FONT "\"-*-*-medium-r-normal--24-*\""
284 #else /* !I18N */
285 #define DEF_TITLE_FONT "\"-*-helvetica-bold-r-normal-*-12-*-*-*-*-*-*-*\""
286 #define DEF_MENU_TITLE_FONT "\"-*-helvetica-bold-r-normal-*-12-*-*-*-*-*-*-*\""
287 #define DEF_MENU_ENTRY_FONT "\"-*-helvetica-medium-r-normal-*-12-*-*-*-*-*-*-*\""
288 #define DEF_ICON_TITLE_FONT "\"-*-helvetica-medium-r-normal-*-8-*-*-*-*-*-*-*\""
289 #define DEF_CLIP_TITLE_FONT "\"-*-helvetica-bold-r-normal-*-10-*-*-*-*-*-*-*\""
290 #define DEF_INFO_TEXT_FONT "\"-*-helvetica-medium-r-normal-*-12-*-*-*-*-*-*-*\""
292 #define DEF_WORKSPACE_NAME_FONT "\"-*-lucida-bold-r-*-*-24-*-*-*-*-*-*-*\""
293 #endif /* !I18N */
295 #define DEF_FRAME_THICKNESS 1 /* linewidth of the move/resize frame */
297 #define DEF_WINDOW_TITLE_EXTEND_SPACE "0"
298 #define DEF_MENU_TITLE_EXTEND_SPACE "0"
299 #define DEF_MENU_TEXT_EXTEND_SPACE "0"
300 #define TITLEBAR_EXTEND_SPACE 4
302 #define DEF_XPM_CLOSENESS 40000
304 /* default position of application menus */
305 #define DEF_APPMENU_X 10
306 #define DEF_APPMENU_Y 10
308 /* calculate window edge resistance from edge resistance */
309 #define WIN_RESISTANCE(x) (((x)*20)/30)
311 /* Window level where icons reside */
312 #define NORMAL_ICON_LEVEL WMNormalLevel
314 /* do not divide main menu and submenu in different tiers,
315 * opposed to OpenStep */
316 #define SINGLE_MENULEVEL
318 /* max. time to spend doing animations in seconds. If the animation
319 * time exceeds this value, it is immediately finished. Usefull for
320 * moments of high-load.
322 #define MAX_ANIMATION_TIME 1
324 /* Zoom animation */
325 #define MINIATURIZE_ANIMATION_FRAMES_Z 5
326 #define MINIATURIZE_ANIMATION_STEPS_Z 12
327 #define MINIATURIZE_ANIMATION_DELAY_Z 500
328 /* Twist animation */
329 #define MINIATURIZE_ANIMATION_FRAMES_T 12
330 #define MINIATURIZE_ANIMATION_STEPS_T 16
331 #define MINIATURIZE_ANIMATION_DELAY_T 1000
332 #define MINIATURIZE_ANIMATION_TWIST_T 0.5
333 /* Flip animation */
334 #define MINIATURIZE_ANIMATION_FRAMES_F 12
335 #define MINIATURIZE_ANIMATION_STEPS_F 16
336 #define MINIATURIZE_ANIMATION_DELAY_F 1000
337 #define MINIATURIZE_ANIMATION_TWIST_F 0.5
340 #define HIDE_ANIMATION_STEPS (MINIATURIZE_ANIMATION_STEPS*2/3)
342 /* delay before balloon is showed */
343 #define BALLOON_DELAY 1000
345 /* delay for menu item selection hysteresis */
346 #define MENU_SELECT_DELAY 200
348 /* delay for jumpback of scrolled menus */
349 #define MENU_JUMP_BACK_DELAY 400
351 /* *** animation speed constants *** */
353 /* icon slide */
354 #define ICON_SLIDE_SLOWDOWN_UF 1
355 #define ICON_SLIDE_DELAY_UF 0
356 #define ICON_SLIDE_STEPS_UF 50
358 #define ICON_SLIDE_SLOWDOWN_F 3
359 #define ICON_SLIDE_DELAY_F 0
360 #define ICON_SLIDE_STEPS_F 50
362 #define ICON_SLIDE_SLOWDOWN_M 5
363 #define ICON_SLIDE_DELAY_M 0
364 #define ICON_SLIDE_STEPS_M 30
366 #define ICON_SLIDE_SLOWDOWN_S 10
367 #define ICON_SLIDE_DELAY_S 0
368 #define ICON_SLIDE_STEPS_S 20
370 #define ICON_SLIDE_SLOWDOWN_US 20
371 #define ICON_SLIDE_DELAY_US 1
372 #define ICON_SLIDE_STEPS_US 10
374 /* menu scrolling */
375 #define MENU_SCROLL_STEPS_UF 14
376 #define MENU_SCROLL_DELAY_UF 1
378 #define MENU_SCROLL_STEPS_F 10
379 #define MENU_SCROLL_DELAY_F 5
381 #define MENU_SCROLL_STEPS_M 6
382 #define MENU_SCROLL_DELAY_M 5
384 #define MENU_SCROLL_STEPS_S 4
385 #define MENU_SCROLL_DELAY_S 6
387 #define MENU_SCROLL_STEPS_US 1
388 #define MENU_SCROLL_DELAY_US 8
391 /* shade animation */
392 #define SHADE_STEPS_UF 5
393 #define SHADE_DELAY_UF 0
395 #define SHADE_STEPS_F 10
396 #define SHADE_DELAY_F 0
398 #define SHADE_STEPS_M 15
399 #define SHADE_DELAY_M 0
401 #define SHADE_STEPS_S 30
402 #define SHADE_DELAY_S 0
404 #define SHADE_STEPS_US 40
405 #define SHADE_DELAY_US 10
408 /* workspace name on switch display */
409 #define WORKSPACE_NAME_FADE_DELAY 30
411 #ifdef VIRTUAL_DESKTOP
412 /* workspace virtual edge speed */
413 #define VIRTUALEDGE_SCROLL_VSTEP 30
414 #define VIRTUALEDGE_SCROLL_HSTEP 30
415 #endif
417 #define WORKSPACE_NAME_DELAY 400
419 /* window birth animation steps (DO NOT MAKE IT RUN-TIME) */
420 #define WINDOW_BIRTH_STEPS 20
422 /* number of steps for icon dematerialization. */
423 #define DEMATERIALIZE_STEPS 16
425 /* Delay when cycling colors of selected icons. */
426 #define COLOR_CYCLE_DELAY 200
428 /* size of the pieces in the undocked icon explosion */
429 #define ICON_KABOOM_PIECE_SIZE 4
432 /* Position increment for smart placement. >= 1 raise these values if it's
433 * too slow for you */
434 #define PLACETEST_HSTEP 8
435 #define PLACETEST_VSTEP 8
438 #define DOCK_EXTRA_SPACE 0
440 /* Vicinity in which an icon can be attached to the clip */
441 #define CLIP_ATTACH_VICINITY 1
443 #define CLIP_BUTTON_SIZE 23
446 /* The amount of space (in multiples of the icon size)
447 * a docked icon must be dragged out to detach it */
448 #define DOCK_DETTACH_THRESHOLD 3
450 /* Delay (in ms) after which the clip will autocollapse when leaved */
451 #define AUTO_COLLAPSE_DELAY 1000
453 /* Delay (in ms) after which the clip will autoexpand when entered.
454 * Set this to zero if you want instant expanding. */
455 #define AUTO_EXPAND_DELAY 600
457 /* Delay (in ms) after which the clip will be lowered when leaved */
458 #define AUTO_LOWER_DELAY 1000
460 /* Delay (in ms) after which the clip will be raised when entered.
461 * Set this to zero if you want instant raise. */
462 #define AUTO_RAISE_DELAY 600
465 /* Max. number of icons the clip can have */
466 #define CLIP_MAX_ICONS 32
468 /* blink interval when invoking a menu item */
469 #define MENU_BLINK_DELAY 60000
470 #define MENU_BLINK_COUNT 2
472 #define CURSOR_BLINK_RATE 300
474 #define MOVE_THRESHOLD 5 /* how many pixels to move before dragging windows
475 * and other objects */
477 #define KEY_CONTROL_WINDOW_WEIGHT 1
479 #define HRESIZE_THRESHOLD 3
481 #define MAX_WORKSPACENAME_WIDTH 32
482 #define MAX_WINDOWLIST_WIDTH 160 /* max width of window title in
483 * window list */
485 #define DEFAULTS_CHECK_INTERVAL 2000 /* how often wmaker will check for
486 * changes in the config files */
488 /* if your keyboard don't have arrow keys */
489 #undef ARROWLESS_KBD
492 /* don't put titles in miniwindows */
493 #undef NO_MINIWINDOW_TITLES
496 #define FRAME_BORDER_COLOR "black"
499 /* for boxes with high mouse sampling rates (SGI) */
500 #define DELAY_BETWEEN_MOUSE_SAMPLING 10
504 *----------------------------------------------------------------------
505 * You should not modify the following values, unless you know
506 * what you're doing.
507 *----------------------------------------------------------------------
511 /* number of window shortcuts */
512 #define MAX_WINDOW_SHORTCUTS 10
515 #define WM_PI 3.14159265358979323846
517 #define FRAME_BORDER_WIDTH 1 /* width of window border for frames */
519 #define RESIZEBAR_HEIGHT 8 /* height of the resizebar */
520 #define RESIZEBAR_MIN_WIDTH 20 /* min. width of handles-corner_width */
521 #define RESIZEBAR_CORNER_WIDTH 28 /* width of the corner of resizebars */
523 #define MENU_INDICATOR_SPACE 12
525 /* minimum size for windows */
526 #define MIN_WINDOW_SIZE 5
528 #define MIN_TITLEFONT_HEIGHT(h) ((h)>14 ? (h) : 14)
530 #define ICON_WIDTH 64 /* size of the icon window */
531 #define ICON_HEIGHT 64
532 #define ICON_BORDER_WIDTH 2
534 #define MAX_ICON_WIDTH 60 /* size of the icon pixmap */
535 #define MAX_ICON_HEIGHT 48
537 /* KDE may have problems with more than 32 workspaces */
538 #ifdef KWM_HINTS
539 # define MAX_WORKSPACES 32
540 #else
541 # define MAX_WORKSPACES 100
542 #endif
544 #define MAX_MENU_TEXT_LENGTH 512
546 #define MAX_RESTART_ARGS 16
548 #define MAX_COMMAND_SIZE 1024
550 #define MAX_DEAD_PROCESSES 128
553 #define MAXLINE 1024
556 #ifdef _MAX_PATH
557 # define DEFAULT_PATH_MAX _MAX_PATH
558 #else
559 # define DEFAULT_PATH_MAX 512
560 #endif
563 #define DEBUG0
565 /* some rules */
567 #ifndef SHAPE
568 #undef SHAPED_BALLOON
569 #endif
571 #ifdef XKB_MODELOCK
572 #define KEEP_XKB_LOCK_STATUS
573 /* This is a hidden feature.
574 * Choose just one of LANGUAGE_* hints.
575 * Icon can be changed in def_pixmaps.h.
576 * More icons are welcome.
578 #define XKB_BUTTON_HINT
579 #undef LANGUAGE_TH
580 #undef LANGUAGE_SK
581 #endif
583 #ifndef DEMATERIALIZE_ICON
584 # define NORMAL_ICON_KABOOM
585 #endif
587 #if defined(HAVE_LIBINTL_H) && defined(I18N)
588 # include <libintl.h>
589 # define _(text) gettext(text)
590 #else
591 # define _(text) (text)
592 #endif
595 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
596 # define INLINE inline
597 #else
598 # define INLINE
599 #endif
601 #endif /* WMCONFIG_H_ */