No need to worry.
Thank you for the query.
There is no need to be worried. Every room equipped with X-ray device has special walls coated with lead. Lead prevents X-rays from getting out of the room. So if you were outside examination room, you are completely safe and the rays could not reach you.
does not linger in the air. You can compare it to the light (it just has different frequency). When light meets the wall, it is invisible from the other side. X-rays acts in the same way when meat lead walls.
So no need to worry.
Hope this will help. Feel free to ask further questions.