6a9ca17...
by
=?utf-8?q?Florian_M=C3=BCllner?= <email address hidden>
theme: Update style classes to match CSD decorations
We currently use the "ssd" style class instead of "csd", so themes
can avoid adding a window shadow to windows that already got a shadow
from the compositor. Now that we no longer add a shadow to regular
windows, we should ask for the appropriate style.
b35ad08...
by
=?utf-8?q?Florian_M=C3=BCllner?= <email address hidden>
window-actor: Use different shape_regions/masks based on focus state
We now update the frame mask and -shape on every focus change, which
is expensive and wasteful if we recompute the same two regions over
and over again. To address this, use different regions/masks based on
the focus state, so that we'll be able to re-use a previously computed
one if possible.
385cce7...
by
=?utf-8?q?Florian_M=C3=BCllner?= <email address hidden>
window-actor: Update mask on focus changes
We currently assume that the frame mask and -shape don't change with the
focus style. This is reasonable for the actual decoration, but not for
the window shadow that is expected to be more pronounced when focused.
We will eventually let the GTK+ theme draw the shadow of regular windows,
so update shape region and frame mask on focus changes.
aae0071...
by
=?utf-8?q?Florian_M=C3=BCllner?= <email address hidden>
shaped-texture: Only mask alpha channel
We currently apply the mask texture to any channel, which means
elements drawn outside the actual decorations are blended with
gray. This should hardly matter in practice where shadows can
be expected to be some shade of gray, but let's still make sure
the odd theme with pink shadows or the like works correctly by
applying the alpha mask to the alpha channel only.