Skip to content
Snippets Groups Projects
Commit 0b304d48 authored by Olivier Fourdan's avatar Olivier Fourdan
Browse files

Update client opacity when transset chages the value on the frame (so that...

Update client opacity when transset chages the value on the frame (so that opacity gets properly restored after a moved/resize)


(Old svn revision: 12172)
parent 092ea081
No related branches found
No related tags found
No related merge requests found
......@@ -1730,6 +1730,8 @@ compositorHandlePropertyNotify (DisplayInfo *display_info, XPropertyEvent *ev)
if (cw)
{
Client *c = cw->c;
TRACE ("Opacity changed for 0x%lx", cw->id);
if (!getOpacity (display_info, cw->id, &cw->opacity))
{
......@@ -1737,6 +1739,18 @@ compositorHandlePropertyNotify (DisplayInfo *display_info, XPropertyEvent *ev)
cw->opacity = NET_WM_OPAQUE;
}
set_win_opacity (cw, cw->opacity);
/* Transset changes the property on the frame, not the client
window. We need to check and update the client "opacity"
value accordingly.
*/
if (c)
{
if (c->opacity != cw->opacity)
{
c->opacity = cw->opacity;
}
}
}
}
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment