Clutter actor and mouse events
Hi all,
I'm using clutter-gtk (the one from fedora32) in an application with several clutter actors. Basically, I got something like this:
+---------------------------------------+
| GtkWidget |
+---------------------------------------+
| ClutterActor A |
| +-------------------------------+ |
| | * | |
| | ClutterActor B | |
| | BtnB | |
| +-------------------------------+ |
| BtnA |
+---------------------------------------+
Where I try to detect when the mouse is on ClutterActorB and be able to click on BtnB and same for A
And I discovered three things:
- If I connect both actors to the mouse-press-event (with both A & B propagating the event), ClutterActor B is unable to catch all the press. Some are dropped. ClutterActorA receives all the press event without any issue.
- ClutterActorB doesn't seems to receive any enter/leave/mouse-notify events
- For the mouse-motion-notify event for the gtkWidget, if the mouse is at the pos where I wrote a (*), the callback will receive the position in ClutterActorB but will send the GtkWidget as the widget. Because the event position should be relative to the widget given in the callback, it should be the position in the GtkWidget, not in the ClutterActor.
Also, it seems it's not possible to get the real size of an object inside a clutter actor if a gravity is set.
Edited by Sébastien Blin