Update and fix for mutter 3.9.1+

This commit is contained in:
Rico Tzschichholz 2013-05-23 15:40:25 +02:00
parent 42adee1bd3
commit 86e789323d
2 changed files with 10 additions and 0 deletions

View File

@ -425,7 +425,12 @@ namespace Gala
var clone = new Clone (actor);
clone.x = actor.x;
clone.y = actor.y;
#if HAS_MUTTER310
//FIXME Maybe create our own new group?
Meta.Compositor.get_stage_for_screen (screen).add_child (clone);
#else
Meta.Compositor.get_overlay_group_for_screen (screen).add_child (clone);
#endif
clone.animate (Clutter.AnimationMode.LINEAR, 100, depth : -50.0f).completed.connect (() => {
clone.animate (Clutter.AnimationMode.LINEAR, 300, depth : 0.0f);
});

View File

@ -301,8 +301,10 @@ namespace Meta {
[CCode (cheader_filename = "meta/compositor.h", cname = "meta_get_background_actor_for_screen")]
public static unowned Clutter.Actor? get_background_actor_for_screen (Meta.Screen screen);
#endif
#if !HAS_MUTTER310
[CCode (cheader_filename = "meta/compositor.h", cname = "meta_get_overlay_group_for_screen")]
public static unowned Clutter.Actor? get_overlay_group_for_screen (Meta.Screen screen);
#endif
[CCode (cheader_filename = "meta/compositor.h", cname = "meta_get_stage_for_screen")]
public static unowned Clutter.Actor? get_stage_for_screen (Meta.Screen screen);
#if HAS_MUTTER38
@ -387,6 +389,9 @@ namespace Meta {
public bool has_shape ();
public unowned Meta.Group lookup_group (X.Window group_leader);
public bool remove_keybinding (string name);
#if HAS_MUTTER310
public void request_take_focus (Meta.Window window, uint32 timestamp);
#endif
public unowned Meta.Screen screen_for_root (X.Window xroot);
public void set_input_focus_window (Meta.Window window, bool focus_frame, uint32 timestamp);
public GLib.SList<weak Meta.Window> sort_windows_by_stacking (GLib.SList<Meta.Window> windows);