Add support for getting the hints' flags of a window

http://tronche.com/gui/x/xlib/ICC/client-to-window-manager/wm-hints.html