diff options
author | Richard Grenville <[email protected]> | 2013-09-04 22:00:51 +0800 |
---|---|---|
committer | Richard Grenville <[email protected]> | 2013-09-04 22:00:51 +0800 |
commit | d41c7507250be2349080fcea44b5f33f84dd65aa (patch) | |
tree | 6205329f52c39991ab2e54de7eae21adbb7a3075 /compton.h | |
parent | fc117ad4f8ec65344a58308a86b48965e574004f (diff) | |
download | tdebase-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.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 |