improved heuristics to catch the xdotool guy