GdkEventOwnerChange.reason

the reason for the ownership change as a #GdkOwnerChange value

struct GdkEventOwnerChange
GdkOwnerChange reason;

Meta