Only enable reparent if we have X11

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>