update xresource