Type event on GtkWindow

Hello,

From this code

using Gtk
signal_connect(my_window , :window_state_event) do w , x
println("type of x ", typeof(x) )
println(“wind activate_focus x :”,x)
end
I have always the same response whatever the state of the window :
type of x Gtk.GdkEventAny
wind activate_focus x :Gtk.GdkEventAny(32, Ptr{Nothing} @0x00000000036586f0, 0)

What i want is the real state (focus iconify …) of my window.

Probably something like gtk_get_property(w, :has_focus, Bool)