implemented (rudimentary?) client state support, so xkill works normally