Removed dependency on xdotool.