amendements + new header file X11Utils.h borrowed from dolphin