add sloppy_focus_raise option
This commit is contained in:
parent
a601553e3c
commit
e32070cffb
|
@ -332,7 +332,6 @@ screen <integer> [MULTI]
|
|||
{
|
||||
general
|
||||
{
|
||||
allow_lower_floats = <boolean>
|
||||
border = <integer>
|
||||
focus_move_pointer = <boolean>
|
||||
font = <font>
|
||||
|
@ -340,6 +339,7 @@ screen <integer> [MULTI]
|
|||
new_get_focus = <boolean>
|
||||
resize_hints = <boolean>
|
||||
sloppy_focus = <boolean>
|
||||
sloppy_focus_raise = <boolean>
|
||||
snap = <integer>
|
||||
}
|
||||
tags
|
||||
|
|
2
config.c
2
config.c
|
@ -314,6 +314,7 @@ config_parse_screen(cfg_t *cfg, int screen)
|
|||
virtscreen->resize_hints = cfg_getbool(cfg_general, "resize_hints");
|
||||
virtscreen->focus_move_pointer = cfg_getbool(cfg_general, "focus_move_pointer");
|
||||
virtscreen->sloppy_focus = cfg_getbool(cfg_general, "sloppy_focus");
|
||||
virtscreen->sloppy_focus_raise = cfg_getbool(cfg_general, "sloppy_focus_raise");
|
||||
virtscreen->new_become_master = cfg_getbool(cfg_general, "new_become_master");
|
||||
virtscreen->new_get_focus = cfg_getbool(cfg_general, "new_get_focus");
|
||||
virtscreen->font = XftFontOpenName(globalconf.display,
|
||||
|
@ -442,6 +443,7 @@ config_parse(const char *confpatharg)
|
|||
CFG_BOOL((char *) "resize_hints", cfg_true, CFGF_NONE),
|
||||
CFG_BOOL((char *) "focus_move_pointer", cfg_false, CFGF_NONE),
|
||||
CFG_BOOL((char *) "sloppy_focus", cfg_true, CFGF_NONE),
|
||||
CFG_BOOL((char *) "sloppy_focus_raise", 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_STR((char *) "font", (char *) "mono-12", CFGF_NONE),
|
||||
|
|
2
layout.c
2
layout.c
|
@ -143,6 +143,8 @@ restack(int screen)
|
|||
if(!sel)
|
||||
return;
|
||||
|
||||
if(!globalconf.screens[screen].sloppy_focus
|
||||
|| globalconf.screens[screen].sloppy_focus_raise)
|
||||
XRaiseWindow(globalconf.display, sel->win);
|
||||
|
||||
if(globalconf.screens[screen].focus_move_pointer)
|
||||
|
|
Loading…
Reference in New Issue