From f3d6ca007288cb3a383849058036005879f64e8d Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 10 Apr 2008 13:18:08 +0200 Subject: [PATCH] [client] Fix issues with opacity Signed-off-by: Julien Danjou --- client.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client.c b/client.c index 768e8c1ee..6f13fdb6f 100644 --- a/client.c +++ b/client.c @@ -154,6 +154,8 @@ client_unfocus(Client *c) { if(globalconf.screens[c->screen].opacity_unfocused != -1) window_settrans(c->win, globalconf.screens[c->screen].opacity_unfocused); + else if(globalconf.screens[c->screen].opacity_focused != -1) + window_settrans(c->win, -1); focus_add_client(NULL); XSetWindowBorder(globalconf.display, c->win, globalconf.screens[c->screen].styles.normal.border.pixel); @@ -208,6 +210,8 @@ client_focus(Client *c, int screen, Bool raise) focus_add_client(c); if(globalconf.screens[c->screen].opacity_focused != -1) window_settrans(c->win, globalconf.screens[c->screen].opacity_focused); + else if(globalconf.screens[c->screen].opacity_unfocused != -1) + window_settrans(c->win, -1); XSetWindowBorder(globalconf.display, c->win, globalconf.screens[screen].styles.focus.border.pixel); titlebar_draw(c);