diff --git a/config.c b/config.c index 7f5e891d..394c2358 100644 --- a/config.c +++ b/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), diff --git a/layout.c b/layout.c index b3d49160..5d3d21b8 100644 --- a/layout.c +++ b/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, diff --git a/structs.h b/structs.h index 3132f0ed..381966fc 100644 --- a/structs.h +++ b/structs.h @@ -260,8 +260,6 @@ typedef struct int borderpx; /** Focus move pointer */ Bool focus_move_pointer; - /** Allow floats to be lowered on focus change */ - Bool allow_lower_floats; /** Respect resize hints */ Bool resize_hints; /** Sloppy focus: focus follow mouse */