[mutter] plugins/default: Make the background a vignette
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] plugins/default: Make the background a vignette
- Date: Wed, 20 Jul 2016 06:27:28 +0000 (UTC)
commit 085df1170e66a9a374bc55b89d06dbca3e930c08
Author: Jonas Ådahl <jadahl gmail com>
Date: Thu Apr 9 17:31:47 2015 +0800
plugins/default: Make the background a vignette
Make the default plugin background a vignette in order to see that it
properly draws using the correct scale.
https://bugzilla.gnome.org/show_bug.cgi?id=768976
src/compositor/plugins/default.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/compositor/plugins/default.c b/src/compositor/plugins/default.c
index 5400ca3..7670b63 100644
--- a/src/compositor/plugins/default.c
+++ b/src/compositor/plugins/default.c
@@ -357,6 +357,11 @@ on_monitors_changed (MetaScreen *screen,
meta_background_actor_set_background (META_BACKGROUND_ACTOR (background_actor), background);
g_object_unref (background);
+ meta_background_actor_set_vignette (META_BACKGROUND_ACTOR (background_actor),
+ TRUE,
+ 0.5,
+ 0.5);
+
clutter_actor_add_child (self->priv->background_group, background_actor);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]