From 5ade4d63e070d65fb0b9459963c033967fd5f967 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 24 Jan 2008 23:45:04 +0100 Subject: [PATCH] remove opacity_unfocused this is crap --- awesomerc.1.txt | 1 - client.c | 7 ------- config.c | 2 -- structs.h | 2 -- 4 files changed, 12 deletions(-) diff --git a/awesomerc.1.txt b/awesomerc.1.txt index 5a479c60f..036c43c23 100644 --- a/awesomerc.1.txt +++ b/awesomerc.1.txt @@ -334,7 +334,6 @@ screen [MULTI] font = new_become_master = new_get_focus = - opacity_unfocused = resize_hints = sloppy_focus = snap = diff --git a/client.c b/client.c index 8759b8d69..04f927572 100644 --- a/client.c +++ b/client.c @@ -172,8 +172,6 @@ focus(Client *c, Bool selscreen, int screen) globalconf.focus->client->win, False, True); XSetWindowBorder(globalconf.display, globalconf.focus->client->win, globalconf.screens[screen].colors_normal[ColBorder].pixel); - window_settrans(globalconf.focus->client->win, - globalconf.screens[screen].opacity_unfocused); } @@ -203,11 +201,6 @@ focus(Client *c, Bool selscreen, int screen) widget_invalidate_cache(screen, WIDGET_CACHE_CLIENTS); XSetInputFocus(globalconf.display, globalconf.focus->client->win, RevertToPointerRoot, CurrentTime); - for(c = globalconf.clients; c; c = c->next) - if(c != globalconf.focus->client) - window_settrans(globalconf.focus->client->win, - globalconf.screens[screen].opacity_unfocused); - window_settrans(globalconf.focus->client->win, -1); restack(screen); } else diff --git a/config.c b/config.c index b9edaaa1b..49fb3c550 100644 --- a/config.c +++ b/config.c @@ -312,7 +312,6 @@ config_parse_screen(cfg_t *cfg, int screen) virtscreen->borderpx = cfg_getint(cfg_general, "border"); virtscreen->snap = cfg_getint(cfg_general, "snap"); virtscreen->resize_hints = cfg_getbool(cfg_general, "resize_hints"); - virtscreen->opacity_unfocused = cfg_getint(cfg_general, "opacity_unfocused"); 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"); @@ -442,7 +441,6 @@ config_parse(const char *confpatharg) CFG_INT((char *) "border", 1, CFGF_NONE), CFG_INT((char *) "snap", 8, CFGF_NONE), CFG_BOOL((char *) "resize_hints", cfg_true, CFGF_NONE), - CFG_INT((char *) "opacity_unfocused", 100, 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), diff --git a/structs.h b/structs.h index 03eb6ee37..4fac9afd6 100644 --- a/structs.h +++ b/structs.h @@ -258,8 +258,6 @@ typedef struct int snap; /** Border size */ int borderpx; - /** Transparency of unfocused clients */ - int opacity_unfocused; /** Focus move pointer */ Bool focus_move_pointer; /** Allow floats to be lowered on focus change */