summaryrefslogtreecommitdiffstats
path: root/compton.h
diff options
context:
space:
mode:
Diffstat (limited to 'compton.h')
-rw-r--r--compton.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/compton.h b/compton.h
index c66739dd4..d44544633 100644
--- a/compton.h
+++ b/compton.h
@@ -325,6 +325,14 @@ ms_to_tv(int timeout) {
}
/**
+ * Whether an event is DamageNotify.
+ */
+static inline bool
+isdamagenotify(session_t *ps, const XEvent *ev) {
+ return ps->damage_event + XDamageNotify == ev->type;
+}
+
+/**
* Create a XTextProperty of a single string.
*/
static inline XTextProperty *
@@ -1206,6 +1214,9 @@ static void
timeout_clear(session_t *ps);
static bool
+tmout_unredir_callback(session_t *ps, timeout_t *tmout);
+
+static bool
mainloop(session_t *ps);
#ifdef CONFIG_XINERAMA