removed Xlib code, doesnt seem to be needed nowadays