panel: Only use X11 features on X11 displays