Hello, I would like to know if there are a way to get the absolute screen position of an actor.
I will explain a little the context and my first attempts: On Gtk, you can do that with a code similar to: window = gtk_widget_get_parent_window (widget); /* if the widget has a parent */ gdk_window_get_origin (window, &x_window, &y_window); But on clutter you have the next: clutter_actor_get_geometry(actor, &geometry) But this returns the position relative to the stage (AFAIK, please correct me if I'm wrong), so it starts to count from (0,0), not from the top level window position. This problem can be workarounded if you are using the clutter stage inside a GtkClutterEmbed, so you can use clutter_actor_get_geometry to get the relative position, and use the gdk_window_get_origin, as I said previously, with the GtkClutterEmbed to get the absolute position of the toplevel. I was able to do that, and seems to work. So the question is how could I do that with a "pure clutter" app. I suppose that this depends on the windowing system. I take a look to SDL functions, but it seems that this doesn't returns you any relevant information about the absolute screen position. I'm afraid that probably I will need to go even more low to get the information, but I prefer to ask first here, with the hope of get some guidance. Thanks for you attention. === API ([EMAIL PROTECTED]) -- To unsubscribe send a mail to [EMAIL PROTECTED]
