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:
@ -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.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user