From 760188dbefc5ab686af7df091f43852ddccf2ea4 Mon Sep 17 00:00:00 2001 From: Richard Grenville Date: Tue, 25 Sep 2012 21:04:10 +0800 Subject: 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. --- compton.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'compton.h') diff --git a/compton.h b/compton.h index 88ecbf9fc..c20f1e9b4 100644 --- a/compton.h +++ b/compton.h @@ -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. */ -- cgit v1.2.1