mirror of
https://github.com/brl/mutter.git
synced 2025-01-23 09:59:03 +00:00
894fe4ba93
If clutter_x11_texture_set_window() was called after clutter_x11_texture_pixmap_set_automatic(), then the Damage object would not be properly created so updates to the window were ignored. Refactor creation of the damage object to a separate function, and call it from clutter_x11_texture_set_window() and clutter_x11_texture_set_pixmap() as appropriate. Addition and removal of the filter function is made conditional on priv->damage to make free_damage_resources() cleanly idempotent. See: http://bugzilla.gnome.org/show_bug.cgi?id=587189 for the original bug report. http://bugzilla.openedhand.com/show_bug.cgi?id=1710 Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>