minor changes
This commit is contained in:
parent
8f4eafaf79
commit
b01cfea5c6
5
Makefile
5
Makefile
|
@ -1,9 +1,10 @@
|
||||||
|
PREFIX ?= /usr
|
||||||
|
MANDIR ?= $(PREFIX)/share/man/man1
|
||||||
|
|
||||||
PACKAGES = x11 xcomposite xfixes xdamage xrender
|
PACKAGES = x11 xcomposite xfixes xdamage xrender
|
||||||
LIBS = `pkg-config --libs $(PACKAGES)` -lm
|
LIBS = `pkg-config --libs $(PACKAGES)` -lm
|
||||||
INCS = `pkg-config --cflags $(PACKAGES)`
|
INCS = `pkg-config --cflags $(PACKAGES)`
|
||||||
CFLAGS = -Wall
|
CFLAGS = -Wall
|
||||||
PREFIX = /usr
|
|
||||||
MANDIR = $(PREFIX)/share/man/man1
|
|
||||||
OBJS = compton.o
|
OBJS = compton.o
|
||||||
|
|
||||||
%.o: src/%.c src/%.h
|
%.o: src/%.c src/%.h
|
||||||
|
|
|
@ -79,7 +79,8 @@ Bool win_type_fade[NUM_WINTYPES];
|
||||||
((w) && ((w)->window_type == WINTYPE_NORMAL \
|
((w) && ((w)->window_type == WINTYPE_NORMAL \
|
||||||
|| (w)->window_type == WINTYPE_UTILITY))
|
|| (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
|
* Options
|
||||||
|
@ -401,6 +402,7 @@ sum_gaussian(conv *map, double opacity,
|
||||||
|
|
||||||
/* precompute shadow corners and sides
|
/* precompute shadow corners and sides
|
||||||
to save time for large windows */
|
to save time for large windows */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
presum_gaussian(conv *map) {
|
presum_gaussian(conv *map) {
|
||||||
int center = map->size / 2;
|
int center = map->size / 2;
|
||||||
|
@ -990,7 +992,6 @@ paint_all(Display *dpy, XserverRegion region) {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
for (w = list; w; w = w->next) {
|
for (w = list; w; w = w->next) {
|
||||||
|
|
||||||
#if CAN_DO_USABLE
|
#if CAN_DO_USABLE
|
||||||
if (!w->usable) continue;
|
if (!w->usable) continue;
|
||||||
#endif
|
#endif
|
||||||
|
@ -2214,63 +2215,44 @@ static void
|
||||||
usage() {
|
usage() {
|
||||||
fprintf(stderr, "compton v0.0.1\n");
|
fprintf(stderr, "compton v0.0.1\n");
|
||||||
fprintf(stderr, "usage: compton [options]\n");
|
fprintf(stderr, "usage: compton [options]\n");
|
||||||
|
|
||||||
fprintf(stderr, "Options\n");
|
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
|
"Options\n"
|
||||||
"-d display\n"
|
"-d display\n"
|
||||||
"Which display should be managed.\n");
|
" Which display should be managed.\n"
|
||||||
fprintf(stderr,
|
|
||||||
"-r radius\n"
|
"-r radius\n"
|
||||||
"The blur radius for shadows. (default 12)\n");
|
" The blur radius for shadows. (default 12)\n"
|
||||||
fprintf(stderr,
|
|
||||||
"-o opacity\n"
|
"-o opacity\n"
|
||||||
"The translucency for shadows. (default .75)\n");
|
" The translucency for shadows. (default .75)\n"
|
||||||
fprintf(stderr,
|
|
||||||
"-l left-offset\n"
|
"-l left-offset\n"
|
||||||
"The left offset for shadows. (default -15)\n");
|
" The left offset for shadows. (default -15)\n"
|
||||||
fprintf(stderr,
|
|
||||||
"-t top-offset\n"
|
"-t top-offset\n"
|
||||||
"The top offset for shadows. (default -15)\n");
|
" The top offset for shadows. (default -15)\n"
|
||||||
fprintf(stderr,
|
|
||||||
"-I fade-in-step\n"
|
"-I fade-in-step\n"
|
||||||
"Opacity change between steps while fading in. (default 0.028)\n");
|
" Opacity change between steps while fading in. (default 0.028)\n"
|
||||||
fprintf(stderr,
|
|
||||||
"-O fade-out-step\n"
|
"-O fade-out-step\n"
|
||||||
"Opacity change between steps while fading out. (default 0.03)\n");
|
" Opacity change between steps while fading out. (default 0.03)\n"
|
||||||
fprintf(stderr,
|
|
||||||
"-D fade-delta-time\n"
|
"-D fade-delta-time\n"
|
||||||
"The time between steps in a fade in milliseconds. (default 10)\n");
|
" The time between steps in a fade in milliseconds. (default 10)\n"
|
||||||
fprintf(stderr,
|
|
||||||
"-m opacity\n"
|
"-m opacity\n"
|
||||||
"The opacity for menus. (default 1.0)\n");
|
" The opacity for menus. (default 1.0)\n"
|
||||||
fprintf(stderr,
|
|
||||||
"-c\n"
|
"-c\n"
|
||||||
"Enabled client-side shadows on windows.\n");
|
" Enabled client-side shadows on windows.\n"
|
||||||
fprintf(stderr,
|
|
||||||
"-C\n"
|
"-C\n"
|
||||||
"Avoid drawing shadows on dock/panel windows.\n");
|
" Avoid drawing shadows on dock/panel windows.\n"
|
||||||
fprintf(stderr,
|
|
||||||
"-z\n"
|
"-z\n"
|
||||||
"Zero the part of the shadow's mask behind the window (experimental).");
|
" Zero the part of the shadow's mask behind the window (experimental)."
|
||||||
fprintf(stderr,
|
|
||||||
"-f\n"
|
"-f\n"
|
||||||
"Fade windows in/out when opening/closing.\n");
|
" Fade windows in/out when opening/closing.\n"
|
||||||
fprintf(stderr,
|
|
||||||
"-F\n"
|
"-F\n"
|
||||||
"Fade windows during opacity changes.\n");
|
" Fade windows during opacity changes.\n"
|
||||||
fprintf(stderr,
|
|
||||||
"-i opacity\n"
|
"-i opacity\n"
|
||||||
"Opacity of inactive windows. (0.1 - 1.0)\n");
|
" Opacity of inactive windows. (0.1 - 1.0)\n"
|
||||||
fprintf(stderr,
|
|
||||||
"-e opacity\n"
|
"-e opacity\n"
|
||||||
"Opacity of window titlebars and borders. (0.1 - 1.0)\n");
|
" Opacity of window titlebars and borders. (0.1 - 1.0)\n"
|
||||||
fprintf(stderr,
|
|
||||||
"-G\n"
|
"-G\n"
|
||||||
"Don't draw shadows on DND windows\n");
|
" Don't draw shadows on DND windows\n"
|
||||||
fprintf(stderr,
|
|
||||||
"-b daemonize\n"
|
"-b daemonize\n"
|
||||||
"Daemonize process.\n");
|
" Daemonize process.\n"
|
||||||
fprintf(stderr,
|
|
||||||
"-S\n"
|
"-S\n"
|
||||||
" Enable synchronous operation (for debugging).\n");
|
" Enable synchronous operation (for debugging).\n");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue