summaryrefslogtreecommitdiffstats
path: root/compton.h
diff options
context:
space:
mode:
authorRichard Grenville <[email protected]>2013-09-04 22:00:51 +0800
committerRichard Grenville <[email protected]>2013-09-04 22:00:51 +0800
commitd41c7507250be2349080fcea44b5f33f84dd65aa (patch)
tree6205329f52c39991ab2e54de7eae21adbb7a3075 /compton.h
parentfc117ad4f8ec65344a58308a86b48965e574004f (diff)
downloadtdebase-d41c7507250be2349080fcea44b5f33f84dd65aa.tar.gz
tdebase-d41c7507250be2349080fcea44b5f33f84dd65aa.zip
Improvement: --unredir-if-possible-exclude & --unredir-if-possible-delay
- Add --unredir-if-possible-exclude, to exclude certain windows when evaluating --unredir-if-possible. (#140) - Add --unredir-if-possible-delay, to add some delay before unredirecting screen. (#138, #140) - Code clean-up.
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