summaryrefslogtreecommitdiffstats
path: root/compton.h
diff options
context:
space:
mode:
authorChristopher Jeffrey <chjjeffrey@gmail.com>2012-09-25 20:53:18 -0500
committerChristopher Jeffrey <chjjeffrey@gmail.com>2012-09-25 20:56:02 -0500
commita0439e57dd9d1e6fb8fa1174a5ed19da6377638f (patch)
tree1c2bf41d8d720f3f40ab99074f101f09eaf06433 /compton.h
parent760188dbefc5ab686af7df091f43852ddccf2ea4 (diff)
downloadtdebase-a0439e57dd9d1e6fb8fa1174a5ed19da6377638f.tar.gz
tdebase-a0439e57dd9d1e6fb8fa1174a5ed19da6377638f.zip
add global options struct.
Diffstat (limited to 'compton.h')
-rw-r--r--compton.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/compton.h b/compton.h
index c20f1e9b4..922f02282 100644
--- a/compton.h
+++ b/compton.h
@@ -241,6 +241,64 @@ typedef struct _win {
struct _win *prev_trans;
} win;
+typedef struct _options {
+ char *display;
+ int shadow_radius;
+ int shadow_offset_x;
+ int shadow_offset_y;
+ double shadow_opacity;
+
+ /// How much to fade in in a single fading step.
+ opacity_t fade_in_step;
+ /// How much to fade out in a single fading step.
+ opacity_t fade_out_step;
+ unsigned long fade_delta;
+ unsigned long fade_time;
+ Bool fade_trans;
+
+ Bool clear_shadow;
+
+ /// Default opacity for inactive windows.
+ /// 32-bit integer with the format of _NET_WM_OPACITY. 0 stands for
+ /// not enabled, default.
+ opacity_t inactive_opacity;
+ /// Whether inactive_opacity overrides the opacity set by window
+ /// attributes.
+ Bool inactive_opacity_override;
+ double frame_opacity;
+ /// How much to dim an inactive window. 0.0 - 1.0, 0 to disable.
+ double inactive_dim;
+
+ /// Whether to try to detect WM windows and mark them as focused.
+ double mark_wmwin_focused;
+
+ /// Whether compton needs to track focus changes.
+ Bool track_focus;
+ /// Whether compton needs to track window name and class.
+ Bool track_wdata;
+
+ /// Shadow blacklist. A linked list of conditions.
+ wincond *shadow_blacklist;
+ /// Fading blacklist. A linked list of conditions.
+ wincond *fade_blacklist;
+
+ /// Whether to fork to background.
+ Bool fork_after_register;
+ /// Red, green and blue tone of the shadow.
+ double shadow_red;
+ double shadow_green;
+ double shadow_blue;
+
+ Bool synchronize;
+
+ // Temporary options
+ int shadow_enable;
+ int fading_enable;
+ Bool no_dock_shadow;
+ Bool no_dnd_shadow;
+ double menu_opacity;
+} options_t;
+
typedef struct _conv {
int size;
double *data;