summaryrefslogtreecommitdiffstats
path: root/compton.h
diff options
context:
space:
mode:
authorRichard Grenville <[email protected]>2012-09-25 21:04:10 +0800
committerRichard Grenville <[email protected]>2012-09-25 21:08:54 +0800
commit760188dbefc5ab686af7df091f43852ddccf2ea4 (patch)
treef8134e2639261f142bbab81fe93accbcf7bbc42d /compton.h
parent0c67b84349c9408b5dc659a5227d599f7a9ed01f (diff)
downloadtdebase-760188dbefc5ab686af7df091f43852ddccf2ea4.tar.gz
tdebase-760188dbefc5ab686af7df091f43852ddccf2ea4.zip
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.
Diffstat (limited to 'compton.h')
-rw-r--r--compton.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/compton.h b/compton.h
index 88ecbf9fc..c20f1e9b4 100644
--- a/compton.h
+++ b/compton.h
@@ -274,6 +274,18 @@ 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.
*/
static inline char *