Add support for getting the hints' flags of a window

This is necessary for hadling the urgency hint asked in lxde/lxqt-panel#41.

Maybe there is a better way of doing it. Please leave your comments.

http://tronche.com/gui/x/xlib/ICC/client-to-window-manager/wm-hints.html