diff options
author | LuoYi | 2022-01-09 14:40:12 +0800 |
---|---|---|
committer | LuoYi | 2022-01-09 14:40:12 +0800 |
commit | 6029f956a4920be35305f1d18e3829ad387eb5fa (patch) | |
tree | ae90f8accbb877aead6d07be0211cccd33f1582f /meta_clip_effect.c | |
parent | 296781c0a59754427d1198cc096d17e99f2c1a7a (diff) | |
download | aur-6029f956a4920be35305f1d18e3829ad387eb5fa.tar.gz |
Bumping version to 41.2-2.1
- Fix order between animations and blur, blur effect will remove
before the animation transition AND will show after animation completed.
(by nine7nine on github)
- Make border brightness configurable: adding border-birghtness schema
key to org.gnome.mutter schema
(by waimus on github)
Add two menu item in mutter_settings, make it easier to change border
width and border brightness of window.
Diffstat (limited to 'meta_clip_effect.c')
-rw-r--r-- | meta_clip_effect.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta_clip_effect.c b/meta_clip_effect.c index 408eefde9dd1..931bd7222695 100644 --- a/meta_clip_effect.c +++ b/meta_clip_effect.c @@ -128,6 +128,7 @@ meta_clip_effect_set_bounds(MetaClipEffect *effect, g_return_if_fail(priv->pipeline && priv->actor); float radius = meta_prefs_get_round_corner_radius(); float border = meta_prefs_get_border_width(); + float brightness = meta_prefs_get_border_brightness(); priv->bounds.x = _bounds->x + padding[0]; priv->bounds.y = _bounds->y + padding[2]; @@ -160,6 +161,8 @@ meta_clip_effect_set_bounds(MetaClipEffect *effect, cogl_pipeline_get_uniform_location(priv->pipeline, "pixel_step"); int location_border_width = cogl_pipeline_get_uniform_location(priv->pipeline, "border_width"); + int location_border_brightness = + cogl_pipeline_get_uniform_location(priv->pipeline, "border_brightness"); float bounds[] = { x1, y1, x2, y2 }; @@ -215,6 +218,7 @@ meta_clip_effect_set_bounds(MetaClipEffect *effect, 2, 1, pixel_step); cogl_pipeline_set_uniform_1i(priv->pipeline, location_skip, 0); cogl_pipeline_set_uniform_1f(priv->pipeline, location_border_width, border); + cogl_pipeline_set_uniform_1f(priv->pipeline, location_border_brightness, brightness); } void @@ -236,4 +240,4 @@ meta_clip_effect_get_bounds(MetaClipEffect *effect, { MetaClipEffectPrivate *priv = meta_clip_effect_get_instance_private(effect); *bounds = priv->bounds; -}
\ No newline at end of file +} |