summaryrefslogtreecommitdiffstats
path: root/compton.h
diff options
context:
space:
mode:
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 *