remove allow_lower_float option

This commit is contained in:
Julien Danjou 2008-01-25 23:20:24 +01:00
parent 34bc4e8191
commit 4e677d242c
3 changed files with 2 additions and 11 deletions

View File

@ -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),

View File

@ -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,

View File

@ -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 */