From 94d3e27c533c35c3ff74226777afe8964d939f55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Mon, 15 Feb 2010 23:11:09 +0100 Subject: [PATCH] [Overview] Fix tiled background images Tiled backgrounds are only displayed once in the upper left corner when in the overview - they should be tiled just like outside the overview. https://bugzilla.gnome.org/show_bug.cgi?id=610203 --- src/shell-global.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/shell-global.c b/src/shell-global.c index 4cf1e38c8..54d4387a7 100644 --- a/src/shell-global.c +++ b/src/shell-global.c @@ -438,7 +438,7 @@ shell_global_get_windows (ShellGlobal *global) } static gboolean -emit_screen_size_changed_cb (gpointer data) +on_screen_size_changed_cb (gpointer data) { ShellGlobal *global = SHELL_GLOBAL (data); @@ -451,6 +451,10 @@ emit_screen_size_changed_cb (gpointer data) g_signal_emit (G_OBJECT (global), shell_global_signals[SCREEN_SIZE_CHANGED], 0); global->last_change_screen_width = width; global->last_change_screen_height = height; + + /* update size of background actor to fix tiled backgrounds */ + clutter_actor_set_size (CLUTTER_ACTOR (global->root_pixmap), + width, height); } return FALSE; @@ -466,7 +470,7 @@ global_stage_notify_width (GObject *gobject, g_object_notify (G_OBJECT (global), "screen-width"); meta_later_add (META_LATER_BEFORE_REDRAW, - emit_screen_size_changed_cb, + on_screen_size_changed_cb, global, NULL); } @@ -481,7 +485,7 @@ global_stage_notify_height (GObject *gobject, g_object_notify (G_OBJECT (global), "screen-height"); meta_later_add (META_LATER_BEFORE_REDRAW, - emit_screen_size_changed_cb, + on_screen_size_changed_cb, global, NULL); }