fixed bug with icons of different sizes
[wmaker-crm.git] / src / wconfig.h.in
blob271165c51a89e1405098131947714fdf185df056
1 /*
2 * wconfig.h- default configuration and definitions + compile time options
3 *
4 * WindowMaker window manager
5 *
6 * Copyright (c) 1997-1999 Alfredo K. Kojima
7 *
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 it (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 #define DRAWSTRING_PLUGIN
49 #endif
52 /*
53 * #define to enable WindozeCycling. Set WindozeCycling = YES in
54 * your WindowMaker config file
55 * WARNING: this still has some bugs
57 #undef WEENDOZE_CYCLE
60 /* undefine ANIMATIONS if you don't want animations for iconification,
61 * shading, icon arrangement etc. */
62 #define ANIMATIONS
66 * undefine USECPP if you don't want your config files to be preprocessed
67 * by cpp
69 #define USECPP
71 /* #define CPP_PATH @CPP_PATH@ */
74 * support for OffiX DND drag and drop in the Dock
76 #define OFFIX_DND
79 * support for XDND drop in the Dock. Experimental
81 #ifdef GNOME_STUFF
82 #define XDND
83 #endif
86 * support for Motif window manager (mwm) window hints
88 #define MWM_HINTS
92 * Undefine BALLOON_TEXT if you don't want balloons for showing extra
93 * information, like window titles that are not fully visible.
95 #define BALLOON_TEXT
98 * If balloons should be shaped or be simple rectangles.
99 * The X server must support the shape extensions and it's support
100 * must be enabled (default).
102 #define SHAPED_BALLOON
106 * Define NO_EMERGENCY_AUTORESTART if you don't want another window manager
107 * automatically started when WindowMaker crashes. The X session will die
108 * in some cases if wmaker crashes and autorestart is disabled.
110 #undef NO_EMERGENCY_AUTORESTART
113 * The window manager that is autorestarted
115 #define FALLBACK_WINDOWMANAGER "blackbox"
118 /* Define if you have a 5 button mouse and want to use button 4
119 * (in the root window) for switching to the previous workspace
120 * and 5 for the next. This will not work if you enable
121 * DisableWSMouseActions or compile wmaker with --enable-lite */
122 #undef MOUSE_WS_SWITCH
125 * Turn on a hack to make mouse and keyboard actions work even if
126 * the NumLock or ScrollLock modifiers are turned on. They might
127 * inflict a performance/memory penalty.
129 * If you're an X expert (knows the implementation of XGrabKey() in X)
130 * and knows that the penalty is small (or not), please tell me.
132 #define NUMLOCK_HACK
137 * define EXTEND_WINDOWSHORTCUT if you want 10 window shortcuts instead of 4.
139 #define EXTEND_WINDOWSHORTCUT
144 * define OPTIMIZE_SHAPE if you want the shape setting code to be optimized
145 * for applications that change their shape frequently (like xdaliclock
146 * -shape), removing flickering. If wmaker and your display are on
147 * different machines and the network connection is slow, it is not
148 * recommended.
150 #undef OPTIMIZE_SHAPE
152 /* define CONFIGURE_WINDOW_WHILE_MOVING if you want WindowMaker to send
153 * the synthetic ConfigureNotify event to windows while moving at every
154 * single movement. Default is to send a synthetic ConfigureNotify event
155 * only at the end of window moving, which improves performance.
157 #undef CONFIGURE_WINDOW_WHILE_MOVING
161 * disable/enable workspace indicator in the dock
163 #undef WS_INDICATOR
167 * define HIDDENDOT if you want a dot to be shown in the application icon
168 * of applications that are hidden.
170 #define HIDDENDOT
174 * Ignores the PPosition hint from clients. This is needed for some
175 * programs that have buggy implementations of such hint and place
176 * themselves in strange locations.
178 #undef IGNORE_PPOSITION
182 * Do not scale application icon and miniwindow icon images.
184 #undef DONT_SCALE_ICONS
191 #define SILLYNESS
198 *..........................................................................
199 * The following options WILL NOT BE MADE RUN-TIME. Please do not request.
200 * They will only add unneeded bloat.
201 *..........................................................................
205 * define SHADOW_RESIZEBAR if you want a resizebar with shadows like in
206 * AfterStep, instead of the default Openstep look.
207 * NEXTSTEP 3.3 also does not have these shadows.
209 #undef SHADOW_RESIZEBAR
212 * Define DEMATERIALIZE_ICON if you want the undocked icon animation
213 * to be a progressive disaparison animation.
214 * This will cause all application icons to be created with Save Under
215 * enable.
217 #undef DEMATERIALIZE_ICON
220 * Define ICON_KABOOM_EXTRA if you want extra fancy icon undocking
221 * explosion animation.
223 #undef ICON_KABOOM_EXTRA
226 * #undef if you dont want the window creation animation when superfluous
227 * is enabled.
229 #undef WINDOW_BIRTH_ZOOM
232 * whether arrow drawing in clip buttons should be gradiented
234 #undef GRADIENT_CLIP_ARROWS
238 *--------------------------------------------------------------------
239 * Default Configuration
241 * Some of the following options can be configured in
242 * the preference files, but if for some reason, they can't
243 * be used, these defaults will be.
244 * There are also some options that can only be configured here,
245 * at compile time.
246 *--------------------------------------------------------------------
249 /* list of paths to look for the config files, searched in order
250 * of appearance */
251 #define DEF_CONFIG_PATHS \
252 "~/GNUstep/Library/WindowMaker:"PKGDATADIR
254 #define DEF_MENU_FILE "menu"
256 /* name of the script to execute at startup */
257 #define DEF_INIT_SCRIPT "autostart"
259 #define DEF_EXIT_SCRIPT "exitscript"
261 #define DEFAULTS_DIR "Defaults"
263 #ifdef USE_TIFF
264 #define DEF_BUTTON_IMAGES PKGDATADIR"/buttons.tiff"
265 #else
266 #define DEF_BUTTON_IMAGES PKGDATADIR"/buttons.xpm"
267 #endif
269 /* the file of the system wide submenu to be forced into the main menu */
270 /* remove the comments if you want it */
272 #define GLOBAL_SUBMENU_FILE PKGDATADIR"/GlobalMenu"
275 /* pixmap path */
276 #define DEF_PIXMAP_PATHS \
277 "(\"~/pixmaps\",\"~/GNUstep/Library/WindowMaker/Pixmaps\",\""PIXMAPDIR"\")"
279 #ifdef USER_MENU
280 #define GLOBAL_USER_MENU_PATH PKGDATADIR"/UserMenus"
281 #define DEF_USER_MENU_PATHS \
282 "~/GNUstep/Library/WindowMaker/UserMenus:"GLOBAL_USER_MENU_PATH
283 #endif
285 /* icon path */
286 #define DEF_ICON_PATHS \
287 "(\"~/pixmaps\",\"~/GNUstep/Library/Icons\",\"/usr/include/X11/pixmaps/\",\""PIXMAPDIR"\")"
290 /* window title to use for untitled windows */
291 #define DEF_WINDOW_TITLE "Untitled"
293 /* default style */
294 #define DEF_FRAME_COLOR "white"
297 #ifdef I18N_MB
298 #define DEF_TITLE_FONT "\"-*-*-medium-r-normal--14-*\""
299 #define DEF_MENU_TITLE_FONT "\"-*-*-medium-r-normal--14-*\""
300 #define DEF_MENU_ENTRY_FONT "\"-*-*-medium-r-normal--14-*\""
301 #define DEF_ICON_TITLE_FONT "\"-*-*-medium-r-normal--10-*\""
302 #define DEF_CLIP_TITLE_FONT "\"-*-*-medium-r-normal--10-*\""
303 #define DEF_INFO_TEXT_FONT "\"-*-*-medium-r-normal--14-*\""
304 #define DEF_ADDITONAL_FONT "-*-*-medium-r-normal--12-*"
306 #define DEF_WORKSPACE_NAME_FONT "\"-*-*-medium-r-normal--24-*\""
307 #else /* !I18N_MB */
308 #define DEF_TITLE_FONT "\"-*-helvetica-bold-r-normal-*-12-*-*-*-*-*-*-*\""
309 #define DEF_MENU_TITLE_FONT "\"-*-helvetica-bold-r-normal-*-12-*-*-*-*-*-*-*\""
310 #define DEF_MENU_ENTRY_FONT "\"-*-helvetica-medium-r-normal-*-12-*-*-*-*-*-*-*\""
311 #define DEF_ICON_TITLE_FONT "\"-*-helvetica-medium-r-normal-*-8-*-*-*-*-*-*-*\""
312 #define DEF_CLIP_TITLE_FONT "\"-*-helvetica-bold-r-normal-*-10-*-*-*-*-*-*-*\""
313 #define DEF_INFO_TEXT_FONT "\"-*-helvetica-medium-r-normal-*-12-*-*-*-*-*-*-*\""
315 #define DEF_WORKSPACE_NAME_FONT "\"-*-lucida-bold-r-*-*-24-*-*-*-*-*-*-*\""
316 #endif /* !I18N_MB */
318 #define HELVETICA10_FONT "-*-helvetica-medium-r-normal-*-10-*-*-*-*-*-*-*"
320 #define DEF_FRAME_THICKNESS 1 /* linewidth of the move/resize frame */
322 #define DEF_WINDOW_TITLE_EXTEND_SPACE 0
323 #define DEF_MENU_TITLE_EXTEND_SPACE 0
324 #define DEF_MENU_TEXT_EXTEND_SPACE 0
326 #define DEF_XPM_CLOSENESS 40000
328 /* default position of application menus */
329 #define DEF_APPMENU_X 10
330 #define DEF_APPMENU_Y 10
332 /* calculate window edge resistance from edge resistance */
333 #define WIN_RESISTANCE(x) (((x)*20)/30)
335 /* Window level where icons reside */
336 #define NORMAL_ICON_LEVEL WMNormalLevel
338 /* do not divide main menu and submenu in different tiers,
339 * opposed to OpenStep */
340 #define SINGLE_MENULEVEL
342 /* max. time to spend doing animations in seconds. If the animation
343 * time exceeds this value, it is immediately finished. Usefull for
344 * moments of high-load.
346 #define MAX_ANIMATION_TIME 1
348 /* Zoom animation */
349 #define MINIATURIZE_ANIMATION_FRAMES_Z 5
350 #define MINIATURIZE_ANIMATION_STEPS_Z 12
351 #define MINIATURIZE_ANIMATION_DELAY_Z 500
352 /* Twist animation */
353 #define MINIATURIZE_ANIMATION_FRAMES_T 12
354 #define MINIATURIZE_ANIMATION_STEPS_T 16
355 #define MINIATURIZE_ANIMATION_DELAY_T 1000
356 #define MINIATURIZE_ANIMATION_TWIST_T 0.5
357 /* Flip animation */
358 #define MINIATURIZE_ANIMATION_FRAMES_F 12
359 #define MINIATURIZE_ANIMATION_STEPS_F 16
360 #define MINIATURIZE_ANIMATION_DELAY_F 1000
361 #define MINIATURIZE_ANIMATION_TWIST_F 0.5
364 #define HIDE_ANIMATION_STEPS (MINIATURIZE_ANIMATION_STEPS*2/3)
366 /* delay before balloon is showed */
367 #define BALLOON_DELAY 1000
369 /* delay for menu item selection hysteresis */
370 #define MENU_SELECT_DELAY 200
372 /* delay for jumpback of scrolled menus */
373 #define MENU_JUMP_BACK_DELAY 400
375 /* *** animation speed constants *** */
377 /* icon slide */
378 #define ICON_SLIDE_SLOWDOWN_UF 20
379 #define ICON_SLIDE_DELAY_UF 0
380 #define ICON_SLIDE_STEPS_UF 15
382 #define ICON_SLIDE_SLOWDOWN_F 30
383 #define ICON_SLIDE_DELAY_F 0
384 #define ICON_SLIDE_STEPS_F 10
386 #define ICON_SLIDE_SLOWDOWN_M 40
387 #define ICON_SLIDE_DELAY_M 0
388 #define ICON_SLIDE_STEPS_M 5
390 #define ICON_SLIDE_SLOWDOWN_S 50
391 #define ICON_SLIDE_DELAY_S 0
392 #define ICON_SLIDE_STEPS_S 3
394 #define ICON_SLIDE_SLOWDOWN_U 50
395 #define ICON_SLIDE_DELAY_U 3
396 #define ICON_SLIDE_STEPS_U 3
398 /* menu scrolling */
399 #define MENU_SCROLL_STEPS_UF 14
400 #define MENU_SCROLL_DELAY_UF 0
402 #define MENU_SCROLL_STEPS_F 10
403 #define MENU_SCROLL_DELAY_F 5
405 #define MENU_SCROLL_STEPS_M 6
406 #define MENU_SCROLL_DELAY_M 5
408 #define MENU_SCROLL_STEPS_S 4
409 #define MENU_SCROLL_DELAY_S 6
411 #define MENU_SCROLL_STEPS_U 1
412 #define MENU_SCROLL_DELAY_U 8
415 /* shade animation */
416 #define SHADE_STEPS_UF 5
417 #define SHADE_DELAY_UF 0
419 #define SHADE_STEPS_F 10
420 #define SHADE_DELAY_F 0
422 #define SHADE_STEPS_M 15
423 #define SHADE_DELAY_M 0
425 #define SHADE_STEPS_S 30
426 #define SHADE_DELAY_S 0
428 #define SHADE_STEPS_U 20
429 #define SHADE_DELAY_U 10
432 /* workspace name on switch display */
433 #define WORKSPACE_NAME_FADE_DELAY 30
435 #define WORKSPACE_NAME_DELAY 400
437 /* window birth animation steps (DO NOT MAKE IT RUN-TIME) */
438 #define WINDOW_BIRTH_STEPS 20
440 /* number of steps for icon dematerialization. */
441 #define DEMATERIALIZE_STEPS 16
443 /* Delay when cycling colors of selected icons. */
444 #define COLOR_CYCLE_DELAY 200
446 /* size of the pieces in the undocked icon explosion */
447 #define ICON_KABOOM_PIECE_SIZE 4
450 /* Position increment for smart placement. >= 1 raise these values if it's
451 * too slow for you */
452 #define PLACETEST_HSTEP 8
453 #define PLACETEST_VSTEP 8
456 #define DOCK_EXTRA_SPACE 0
458 /* Vicinity in which an icon can be attached to the clip */
459 #define CLIP_ATTACH_VICINITY 1
461 #define CLIP_BUTTON_SIZE 23
464 /* The amount of space (in multiples of the icon size)
465 * a docked icon must be dragged out to detach it */
466 #define DOCK_DETTACH_THRESHOLD 3
468 /* Delay (in ms) after which the clip will autocollapse when leaved */
469 #define AUTO_COLLAPSE_DELAY 1000
471 /* Delay (in ms) after which the clip will autoexpand when entered.
472 * Set this to zero if you want instant expanding. */
473 #define AUTO_EXPAND_DELAY 600
475 /* Delay (in ms) after which the clip will be lowered when leaved */
476 #define AUTO_LOWER_DELAY 1000
478 /* Delay (in ms) after which the clip will be raised when entered.
479 * Set this to zero if you want instant raise. */
480 #define AUTO_RAISE_DELAY 600
483 /* Max. number of icons the clip can have */
484 #define CLIP_MAX_ICONS 32
486 /* blink interval when invoking a menu item */
487 #define MENU_BLINK_DELAY 60000
488 #define MENU_BLINK_COUNT 2
490 #define CURSOR_BLINK_RATE 300
492 #define MOVE_THRESHOLD 5 /* how many pixels to move before dragging windows
493 * and other objects */
495 #define KEY_CONTROL_WINDOW_WEIGHT 1
497 #define HRESIZE_THRESHOLD 3
499 #define MAX_WORKSPACENAME_WIDTH 16
500 #define MAX_WINDOWLIST_WIDTH 160 /* max width of window title in
501 * window list */
503 #define DEFAULTS_CHECK_INTERVAL 2000 /* how often wmaker will check for
504 * changes in the config files */
506 /* if your keyboard don't have arrow keys */
507 #undef ARROWLESS_KBD
510 /* don't put titles in miniwindows */
511 #undef NO_MINIWINDOW_TITLES
514 #define FRAME_BORDER_COLOR "black"
517 /* for boxes with high mouse sampling rates (SGI) */
518 #define DELAY_BETWEEN_MOUSE_SAMPLING 10
522 *----------------------------------------------------------------------
523 * You should not modify the following values, unless you know
524 * what you're doing.
525 *----------------------------------------------------------------------
529 /* number of window shortcuts */
530 #ifdef EXTEND_WINDOWSHORTCUT
531 # define MAX_WINDOW_SHORTCUTS 10
532 #else
533 # define MAX_WINDOW_SHORTCUTS 4
534 #endif
537 #define WM_PI 3.14159265358979323846
539 #define FRAME_BORDER_WIDTH 1 /* width of window border for frames */
541 #define RESIZEBAR_HEIGHT 8 /* height of the resizebar */
542 #define RESIZEBAR_MIN_WIDTH 20 /* min. width of handles-corner_width */
543 #define RESIZEBAR_CORNER_WIDTH 28 /* width of the corner of resizebars */
545 #define TITLEBAR_EXTRA_HEIGHT 8
547 #define MENU_INDICATOR_SPACE 12
549 /* minimum size for windows */
550 #define MIN_WINDOW_SIZE 5
552 #define MIN_TITLEFONT_HEIGHT(h) ((h)>14 ? (h) : 14)
554 #define ICON_WIDTH 64 /* size of the icon window */
555 #define ICON_HEIGHT 64
556 #define ICON_BORDER_WIDTH 2
558 #define MAX_ICON_WIDTH 60 /* size of the icon pixmap */
559 #define MAX_ICON_HEIGHT 48
561 /* KDE may have problems with more than 32 workspaces */
562 #ifdef KWM_HINTS
563 # define MAX_WORKSPACES 32
564 #else
565 # define MAX_WORKSPACES 100
566 #endif
568 #define MAX_MENU_TEXT_LENGTH 512
570 #define MAX_RESTART_ARGS 16
572 #define MAX_COMMAND_SIZE 1024
574 #define MAX_DEAD_PROCESSES 128
577 #define MAXLINE 1024
580 #ifdef _MAX_PATH
581 # define DEFAULT_PATH_MAX _MAX_PATH
582 #else
583 # define DEFAULT_PATH_MAX 512
584 #endif
587 #define DEBUG0
589 /* some rules */
591 #ifndef SHAPE
592 #undef SHAPED_BALLOON
593 #endif
595 #ifdef XKB_MODELOCK
596 #define KEEP_XKB_LOCK_STATUS
597 /* This is a hidden feature.
598 * choose one between 2 of these hints. Icon can be changed
599 * in def_pixmaps.h and default icon is now for Thai language only.
600 * More icons are welcome.
602 #define XKB_BUTTON_HINT
603 #undef LANGUAGE_TH
604 #endif
606 #ifndef DEMATERIALIZE_ICON
607 # define NORMAL_ICON_KABOOM
608 #endif
610 #if HAVE_LIBINTL_H && I18N
611 # include <libintl.h>
612 # define _(text) gettext(text)
613 #else
614 # define _(text) (text)
615 #endif
618 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
619 # define INLINE inline
620 #else
621 # define INLINE
622 #endif
624 #endif /* WMCONFIG_H_ */