Add and update doc for opacity_[un]focused, and switch to float

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-03-23 20:38:16 +01:00
parent 3b8cf66822
commit ec96d4d1f8
4 changed files with 11 additions and 7 deletions

View File

@ -53,7 +53,10 @@ new_become_master::
new_get_focus:: new_get_focus::
If this is set to true, new windows will get focus. If this is set to true, new windows will get focus.
opacity_unfocused:: opacity_unfocused::
If this is set to true, non-focused windows will have this opacity. If this is set to a float value between 0 and 100, non-focused windows will have this opacity.
This requires an external XComposite manager.
opacity_focused::
If this is set to a float value between 0 and 100, focused windows will have this opacity.
This requires an external XComposite manager. This requires an external XComposite manager.
resize_hints:: resize_hints::
If this is set to true, resize hints given by the window will be respected. If this is set to true, resize hints given by the window will be respected.
@ -558,6 +561,7 @@ screen <integer> [MULTI]
new_become_master = <boolean> new_become_master = <boolean>
new_get_focus = <boolean> new_get_focus = <boolean>
opacity_unfocused = <integer> opacity_unfocused = <integer>
opacity_focused = <integer>
resize_hints = <boolean> resize_hints = <boolean>
sloppy_focus = <boolean> sloppy_focus = <boolean>
sloppy_focus_raise = <boolean> sloppy_focus_raise = <boolean>

View File

@ -188,8 +188,8 @@ cfg_opt_t general_opts[] =
CFG_BOOL((char *) "sloppy_focus_raise", cfg_false, CFGF_NONE), CFG_BOOL((char *) "sloppy_focus_raise", cfg_false, CFGF_NONE),
CFG_BOOL((char *) "new_become_master", cfg_true, CFGF_NONE), CFG_BOOL((char *) "new_become_master", cfg_true, CFGF_NONE),
CFG_BOOL((char *) "new_get_focus", cfg_true, CFGF_NONE), CFG_BOOL((char *) "new_get_focus", cfg_true, CFGF_NONE),
CFG_INT((char *) "opacity_unfocused", -1, CFGF_NONE), CFG_FLOAT((char *) "opacity_unfocused", -1, CFGF_NONE),
CFG_INT((char *) "opacity_focused", -1, CFGF_NONE), CFG_FLOAT((char *) "opacity_focused", -1, CFGF_NONE),
CFG_STR((char *) "floating_placement", (char *) "smart", CFGF_NONE), CFG_STR((char *) "floating_placement", (char *) "smart", CFGF_NONE),
CFG_FLOAT((char *) "mwfact_lower_limit", 0.1, CFGF_NONE), CFG_FLOAT((char *) "mwfact_lower_limit", 0.1, CFGF_NONE),
CFG_FLOAT((char *) "mwfact_upper_limit", 0.9, CFGF_NONE), CFG_FLOAT((char *) "mwfact_upper_limit", 0.9, CFGF_NONE),

View File

@ -339,8 +339,8 @@ config_parse_screen(cfg_t *cfg, int screen)
virtscreen->sloppy_focus_raise = cfg_getbool(cfg_general, "sloppy_focus_raise"); virtscreen->sloppy_focus_raise = cfg_getbool(cfg_general, "sloppy_focus_raise");
virtscreen->new_become_master = cfg_getbool(cfg_general, "new_become_master"); virtscreen->new_become_master = cfg_getbool(cfg_general, "new_become_master");
virtscreen->new_get_focus = cfg_getbool(cfg_general, "new_get_focus"); virtscreen->new_get_focus = cfg_getbool(cfg_general, "new_get_focus");
virtscreen->opacity_unfocused = cfg_getint(cfg_general, "opacity_unfocused"); virtscreen->opacity_unfocused = cfg_getfloat(cfg_general, "opacity_unfocused");
virtscreen->opacity_focused = cfg_getint(cfg_general, "opacity_focused"); virtscreen->opacity_focused = cfg_getfloat(cfg_general, "opacity_focused");
virtscreen->floating_placement = virtscreen->floating_placement =
name_func_lookup(cfg_getstr(cfg_general, "floating_placement"), name_func_lookup(cfg_getstr(cfg_general, "floating_placement"),
FloatingPlacementList); FloatingPlacementList);

View File

@ -306,9 +306,9 @@ typedef struct
style_t urgent; style_t urgent;
} styles; } styles;
/** Transparency of unfocused clients */ /** Transparency of unfocused clients */
int opacity_unfocused; double opacity_unfocused;
/** Transparency of focused clients */ /** Transparency of focused clients */
int opacity_focused; double opacity_focused;
/** Tag list */ /** Tag list */
Tag *tags; Tag *tags;
/** Layout list */ /** Layout list */