while porting this example to PLGI, I stumbled into a problem I'm unable to solve: the keyboards events aren't released, while the button ones yes. I find in documentation that an event mask should be set on the GdkWindow, so I was attempting to add GDK_KEY_RELEASE_MASK calling
gdk_window_set_events(GdkWindow, ['GDK_BUTTON_PRESS_MASK','GDK_KEY_RELEASE_MASK']),
but I can't get the GdkWindow.
Calling
clutter_gdk_get_stage_window(Stage, GdkWindow),
I get
Clutter-CRITICAL **: The Clutter backend is not a GDK backend
What could be a way to solve this problem ? Of course, I don't know if once solved this one, the keyboard events will be delivered, and the reason behind the fact that button events are released instead.
The behaviour should not be related at all to PLGI, since also the C sample doesn't 'answer' to keyboard events...
Also, changing the typelib import from
:- plgi_use_namespace('ClutterGdk').
to
:- plgi_use_namespace('ClutterX11').
has no effect...