remove allow_lower_float option
This commit is contained in:
parent
34bc4e8191
commit
4e677d242c
2
config.c
2
config.c
|
@ -313,7 +313,6 @@ config_parse_screen(cfg_t *cfg, int screen)
|
|||
virtscreen->snap = cfg_getint(cfg_general, "snap");
|
||||
virtscreen->resize_hints = cfg_getbool(cfg_general, "resize_hints");
|
||||
virtscreen->focus_move_pointer = cfg_getbool(cfg_general, "focus_move_pointer");
|
||||
virtscreen->allow_lower_floats = cfg_getbool(cfg_general, "allow_lower_floats");
|
||||
virtscreen->sloppy_focus = cfg_getbool(cfg_general, "sloppy_focus");
|
||||
virtscreen->new_become_master = cfg_getbool(cfg_general, "new_become_master");
|
||||
virtscreen->new_get_focus = cfg_getbool(cfg_general, "new_get_focus");
|
||||
|
@ -442,7 +441,6 @@ config_parse(const char *confpatharg)
|
|||
CFG_INT((char *) "snap", 8, CFGF_NONE),
|
||||
CFG_BOOL((char *) "resize_hints", cfg_true, CFGF_NONE),
|
||||
CFG_BOOL((char *) "focus_move_pointer", cfg_false, CFGF_NONE),
|
||||
CFG_BOOL((char *) "allow_lower_floats", cfg_false, CFGF_NONE),
|
||||
CFG_BOOL((char *) "sloppy_focus", cfg_true, CFGF_NONE),
|
||||
CFG_BOOL((char *) "new_become_master", cfg_true, CFGF_NONE),
|
||||
CFG_BOOL((char *) "new_get_focus", cfg_true, CFGF_NONE),
|
||||
|
|
9
layout.c
9
layout.c
|
@ -78,8 +78,7 @@ arrange(int screen)
|
|||
focus(c, screen);
|
||||
}
|
||||
|
||||
if(!globalconf.screens[screen].allow_lower_floats)
|
||||
layout_raise_floatings(screen);
|
||||
layout_raise_floatings(screen);
|
||||
|
||||
/* if we have a valid client that could be focused but currently no window
|
||||
* are focused, then set the focus on this window */
|
||||
|
@ -140,15 +139,11 @@ void
|
|||
restack(int screen)
|
||||
{
|
||||
Client *sel = globalconf.focus->client;
|
||||
Layout *curlay = get_current_layout(screen);
|
||||
|
||||
if(!sel)
|
||||
return;
|
||||
|
||||
if(globalconf.screens[screen].allow_lower_floats)
|
||||
XRaiseWindow(globalconf.display, sel->win);
|
||||
else if(sel->isfloating || curlay->arrange == layout_floating)
|
||||
XRaiseWindow(globalconf.display, sel->win);
|
||||
XRaiseWindow(globalconf.display, sel->win);
|
||||
|
||||
if(globalconf.screens[screen].focus_move_pointer)
|
||||
XWarpPointer(globalconf.display, None, sel->win, 0, 0, 0, 0,
|
||||
|
|
Loading…
Reference in New Issue