Feature: Wintype-specific options in configuration files

- Add support of window-type-specific options (fade, shadow, and
  opacity) in configuration file parsing. Syntax shown in
  compton.sample.conf.

- Replace wintype_name() with an array of window type names. Code
  clean-up.
This commit is contained in:
Richard Grenville
2012-09-25 21:04:10 +08:00
parent ee9e90efec
commit 564e55e22c
3 changed files with 85 additions and 88 deletions

View File

@ -273,6 +273,18 @@ set_ignore(Display *dpy, unsigned long sequence);
static int
should_ignore(Display *dpy, unsigned long sequence);
/**
* Set a Bool array of all wintypes to true.
*/
static void
wintype_arr_enable(Bool arr[]) {
wintype i;
for (i = 0; i < NUM_WINTYPES; ++i) {
arr[i] = True;
}
}
/**
* Allocate the space and copy a string.
*/