Today something happened which included two inappropriate behavior from one of my managers.
I work in a small startup company as a software developer where I have two (very close to each other) managers, CEO Mrs X and CTO Mr X. Mrs X is the lead and everyone else reports to her include Mr X. We all work very closely during the day.
Today weather was crazy so we arrived a little late. And there is a protocol that you can arrive anytime, but will have to stay late if you arrive late. Today I sat with Mr X to knockout a feature that needs both of us (backend/frontend) for around 4 hours (~2 -> 6 p.m). Sometime during that, this dialog happened:
Mr X: Till what time are you planning to stay today?
Me: Till around 6 or 7.
Mr X: Ok cool because I will have to leave for a meeting before 6:30.
Me: No problem. I will then go have something to eat since I did not have my lunch yet.
At around 6:10, Mrs X knocks on the door and informs us that she has to leave soon and asked us if we need anything from here before she takes off. Mr X and Mrs X get into a small dialog, but then she asks:
Mrs X: Till what time are you planning to stay?
Mr X: Well since this idiot did not have lunch yet we have to leave soon hahaha
Now here I was shocked but did not show it, I replied right away:
Me: Well I can come back but you said you have to be somewhere else at 6:30
Mr X: (Stopped laughing) Well yeah I am just teasing you.
Mrs X said nothing and left. He asked me if he offended me in anyway, I said "no, it is cool" but it was obvious that I got annoyed by his words. Then we left the room, everyone sorted his stuff and left for the day.
I want that not to happen again. Should I stop him and address it or speak with the CEO? What would a proper way be?