diff options
author | Richard Grenville <[email protected]> | 2013-05-21 09:18:41 +0800 |
---|---|---|
committer | Richard Grenville <[email protected]> | 2013-05-21 09:26:18 +0800 |
commit | d800a62b878fa152c94253b2c0f60ef4f5b9b9d1 (patch) | |
tree | ed2ae824aee66bd3ec4adcd78cf6a93c2b94813b /compton.h | |
parent | 1bdd035974a0166434cdb2dd5d34405d6ddf184d (diff) | |
download | tdebase-d800a62b878fa152c94253b2c0f60ef4f5b9b9d1.tar.gz tdebase-d800a62b878fa152c94253b2c0f60ef4f5b9b9d1.zip |
Feature #113: Set opacity based on conditions
- Add --opacity-rule, which sets opacity based on conditions, as
requested by zabbal. (#113)
- Add a data field for each condition.
- Correct the FAQ link in README.md. Silly me.
- Code clean-up.
Diffstat (limited to 'compton.h')
-rw-r--r-- | compton.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -415,6 +415,17 @@ win_has_frame(const win *w) { || w->top_width || w->left_width || w->right_width || w->bottom_width; } +static inline void +wid_set_opacity_prop(session_t *ps, Window wid, long val) { + XChangeProperty(ps->dpy, wid, ps->atom_opacity, XA_CARDINAL, 32, + PropModeReplace, (unsigned char *) &val, 1); +} + +static inline void +wid_rm_opacity_prop(session_t *ps, Window wid) { + XDeleteProperty(ps->dpy, wid, ps->atom_opacity); +} + /** * Dump an drawable's info. */ |