aboutsummaryrefslogtreecommitdiff
path: root/src/background.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/background.vala')
-rw-r--r--src/background.vala23
1 files changed, 13 insertions, 10 deletions
diff --git a/src/background.vala b/src/background.vala
index a1c28e9..2d60074 100644
--- a/src/background.vala
+++ b/src/background.vala
@@ -691,15 +691,18 @@ public class Background : Gtk.Fixed
void publish_average_color ()
{
notify_property ("average-color");
- var rgba = current.average_color.to_string ();
- var root = get_screen ().get_root_window ();
-
- Gdk.property_change (root,
- Gdk.Atom.intern_static_string ("_GNOME_BACKGROUND_REPRESENTATIVE_COLORS"),
- Gdk.Atom.intern_static_string ("STRING"),
- 8,
- Gdk.PropMode.REPLACE,
- rgba.data,
- rgba.data.length);
+
+ if (!ArcticaGreeter.singleton.test_mode)
+ {
+ var rgba = current.average_color.to_string ();
+ var root = get_screen ().get_root_window ();
+ Gdk.property_change (root,
+ Gdk.Atom.intern_static_string ("_GNOME_BACKGROUND_REPRESENTATIVE_COLORS"),
+ Gdk.Atom.intern_static_string ("STRING"),
+ 8,
+ Gdk.PropMode.REPLACE,
+ rgba.data,
+ rgba.data.length);
+ }
}
}