[gnome-shell] [Overview] Fix tiled background images
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] [Overview] Fix tiled background images
- Date: Wed, 17 Feb 2010 16:25:45 +0000 (UTC)
commit 94d3e27c533c35c3ff74226777afe8964d939f55
Author: Florian Müllner <fmuellner src gnome org>
Date: Mon Feb 15 23:11:09 2010 +0100
[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 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/src/shell-global.c b/src/shell-global.c
index 4cf1e38..54d4387 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]