Add support for with_visibility(), show(), hide() on X11.