[mutter] plugins/default: Make the background a vignette



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]