remove magic from cmake. USE_QT5 should be the only trigger
Skip leave confirmation dialogs depending on session settings
Add support for getting the hints' flags of a window

http://tronche.com/gui/x/xlib/ICC/client-to-window-manager/wm-hints.html
Removed Xutil.h defines and added NULL check