[client] Fix issues with opacity
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
a09e6180bb
commit
f3d6ca0072
4
client.c
4
client.c
|
@ -154,6 +154,8 @@ client_unfocus(Client *c)
|
||||||
{
|
{
|
||||||
if(globalconf.screens[c->screen].opacity_unfocused != -1)
|
if(globalconf.screens[c->screen].opacity_unfocused != -1)
|
||||||
window_settrans(c->win, globalconf.screens[c->screen].opacity_unfocused);
|
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);
|
focus_add_client(NULL);
|
||||||
XSetWindowBorder(globalconf.display, c->win,
|
XSetWindowBorder(globalconf.display, c->win,
|
||||||
globalconf.screens[c->screen].styles.normal.border.pixel);
|
globalconf.screens[c->screen].styles.normal.border.pixel);
|
||||||
|
@ -208,6 +210,8 @@ client_focus(Client *c, int screen, Bool raise)
|
||||||
focus_add_client(c);
|
focus_add_client(c);
|
||||||
if(globalconf.screens[c->screen].opacity_focused != -1)
|
if(globalconf.screens[c->screen].opacity_focused != -1)
|
||||||
window_settrans(c->win, globalconf.screens[c->screen].opacity_focused);
|
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,
|
XSetWindowBorder(globalconf.display, c->win,
|
||||||
globalconf.screens[screen].styles.focus.border.pixel);
|
globalconf.screens[screen].styles.focus.border.pixel);
|
||||||
titlebar_draw(c);
|
titlebar_draw(c);
|
||||||
|
|
Loading…
Reference in New Issue