minor changes

This commit is contained in:
Christopher Jeffrey 2012-02-27 06:49:50 -06:00
parent 8f4eafaf79
commit b01cfea5c6
2 changed files with 47 additions and 64 deletions

View File

@ -1,9 +1,10 @@
PREFIX ?= /usr
MANDIR ?= $(PREFIX)/share/man/man1
PACKAGES = x11 xcomposite xfixes xdamage xrender
LIBS = `pkg-config --libs $(PACKAGES)` -lm
INCS = `pkg-config --cflags $(PACKAGES)`
CFLAGS = -Wall
PREFIX = /usr
MANDIR = $(PREFIX)/share/man/man1
OBJS = compton.o
%.o: src/%.c src/%.h

View File

@ -79,7 +79,8 @@ Bool win_type_fade[NUM_WINTYPES];
((w) && ((w)->window_type == WINTYPE_NORMAL \
|| (w)->window_type == WINTYPE_UTILITY))
#define HAS_FRAME_OPACITY(w) (frame_opacity && (w)->top_width)
#define HAS_FRAME_OPACITY(w) \
(frame_opacity && (w)->top_width)
/**
* Options
@ -401,6 +402,7 @@ sum_gaussian(conv *map, double opacity,
/* precompute shadow corners and sides
to save time for large windows */
static void
presum_gaussian(conv *map) {
int center = map->size / 2;
@ -990,7 +992,6 @@ paint_all(Display *dpy, XserverRegion region) {
#endif
for (w = list; w; w = w->next) {
#if CAN_DO_USABLE
if (!w->usable) continue;
#endif
@ -2214,63 +2215,44 @@ static void
usage() {
fprintf(stderr, "compton v0.0.1\n");
fprintf(stderr, "usage: compton [options]\n");
fprintf(stderr, "Options\n");
fprintf(stderr,
"Options\n"
"-d display\n"
"Which display should be managed.\n");
fprintf(stderr,
" Which display should be managed.\n"
"-r radius\n"
"The blur radius for shadows. (default 12)\n");
fprintf(stderr,
" The blur radius for shadows. (default 12)\n"
"-o opacity\n"
"The translucency for shadows. (default .75)\n");
fprintf(stderr,
" The translucency for shadows. (default .75)\n"
"-l left-offset\n"
"The left offset for shadows. (default -15)\n");
fprintf(stderr,
" The left offset for shadows. (default -15)\n"
"-t top-offset\n"
"The top offset for shadows. (default -15)\n");
fprintf(stderr,
" The top offset for shadows. (default -15)\n"
"-I fade-in-step\n"
"Opacity change between steps while fading in. (default 0.028)\n");
fprintf(stderr,
" Opacity change between steps while fading in. (default 0.028)\n"
"-O fade-out-step\n"
"Opacity change between steps while fading out. (default 0.03)\n");
fprintf(stderr,
" Opacity change between steps while fading out. (default 0.03)\n"
"-D fade-delta-time\n"
"The time between steps in a fade in milliseconds. (default 10)\n");
fprintf(stderr,
" The time between steps in a fade in milliseconds. (default 10)\n"
"-m opacity\n"
"The opacity for menus. (default 1.0)\n");
fprintf(stderr,
" The opacity for menus. (default 1.0)\n"
"-c\n"
"Enabled client-side shadows on windows.\n");
fprintf(stderr,
" Enabled client-side shadows on windows.\n"
"-C\n"
"Avoid drawing shadows on dock/panel windows.\n");
fprintf(stderr,
" Avoid drawing shadows on dock/panel windows.\n"
"-z\n"
"Zero the part of the shadow's mask behind the window (experimental).");
fprintf(stderr,
" Zero the part of the shadow's mask behind the window (experimental)."
"-f\n"
"Fade windows in/out when opening/closing.\n");
fprintf(stderr,
" Fade windows in/out when opening/closing.\n"
"-F\n"
"Fade windows during opacity changes.\n");
fprintf(stderr,
" Fade windows during opacity changes.\n"
"-i opacity\n"
"Opacity of inactive windows. (0.1 - 1.0)\n");
fprintf(stderr,
" Opacity of inactive windows. (0.1 - 1.0)\n"
"-e opacity\n"
"Opacity of window titlebars and borders. (0.1 - 1.0)\n");
fprintf(stderr,
" Opacity of window titlebars and borders. (0.1 - 1.0)\n"
"-G\n"
"Don't draw shadows on DND windows\n");
fprintf(stderr,
" Don't draw shadows on DND windows\n"
"-b daemonize\n"
"Daemonize process.\n");
fprintf(stderr,
" Daemonize process.\n"
"-S\n"
" Enable synchronous operation (for debugging).\n");