[maemo-commits] [maemo-commits] r18513 - in projects/haf/trunk/libmatchbox2: . matchbox/comp-mgr

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Wed May 27 17:25:42 EEST 2009
Author: gw
Date: 2009-05-27 17:25:30 +0300 (Wed, 27 May 2009)
New Revision: 18513

Modified:
   projects/haf/trunk/libmatchbox2/ChangeLog
   projects/haf/trunk/libmatchbox2/matchbox/comp-mgr/mb-wm-comp-mgr-clutter.c
Log:
	* matchbox/comp-mgr/mb-wm-comp-mgr-clutter.c: Added explicit enable of
	visibility detection in readiness for clutter 0.8.2-0maemo33 which
	will have detection off by default.


Modified: projects/haf/trunk/libmatchbox2/ChangeLog
===================================================================
--- projects/haf/trunk/libmatchbox2/ChangeLog	2009-05-27 14:21:40 UTC (rev 18512)
+++ projects/haf/trunk/libmatchbox2/ChangeLog	2009-05-27 14:25:30 UTC (rev 18513)
@@ -1,3 +1,9 @@
+2009-05-27  Gordon Williams <gordon.williams at collabora.co.uk>
+
+	* matchbox/comp-mgr/mb-wm-comp-mgr-clutter.c: Added explicit enable of
+	visibility detection in readiness for clutter 0.8.2-0maemo33 which
+	will have detection off by default.
+
 2009-05-27  Adam Endrodi  <adam.endrodi at blumsoft.eu>
 
 	NB#112098 HildonProgram's is-topmost property is behaving oddly

Modified: projects/haf/trunk/libmatchbox2/matchbox/comp-mgr/mb-wm-comp-mgr-clutter.c
===================================================================
--- projects/haf/trunk/libmatchbox2/matchbox/comp-mgr/mb-wm-comp-mgr-clutter.c	2009-05-27 14:21:40 UTC (rev 18512)
+++ projects/haf/trunk/libmatchbox2/matchbox/comp-mgr/mb-wm-comp-mgr-clutter.c	2009-05-27 14:25:30 UTC (rev 18513)
@@ -267,6 +267,9 @@
   cclient->priv->actor = g_object_ref_sink( clutter_group_new() );
   cclient->priv->bound = FALSE;
 
+  /* Explicitly enable maemo-specific visibility detection to cut down
+   * spurious paints */
+  clutter_actor_set_visibility_detect(cclient->priv->actor, TRUE);
   g_object_set_data (G_OBJECT (cclient->priv->actor),
                      "HD-MBWMCompMgrClutterClient", cclient);
 #if DEBUG_ACTOR
@@ -1065,7 +1068,9 @@
   sprintf(actor_name, "texture_0x%lx",
           c->xwin_frame ? c->xwin_frame : c->window->xwindow);
   clutter_actor_set_name(texture, actor_name);
-
+  /* Explicitly enable maemo-specific visibility detection to cut down
+   * spurious paints */
+  clutter_actor_set_visibility_detect(texture, TRUE);
   clutter_actor_show (texture);
 
   clutter_container_add_actor (CLUTTER_CONTAINER (cclient->priv->actor), texture);


More information about the maemo-commits mailing list