Use proper function for retrieving 'state' property on window object ( flags instead of enum )

https://bugzilla.gnome.org/show_bug.cgi?id=721730