Mom issues part 1

Brooke talks about how there are no toxic people on one of ber podcasts and that it is just what you think about them. Every time my mom visits she complains the entire time about her life and my grandparents. I know it is my thoughts that create my feelings but how do I create thoughts that will allow me to tolerate her or would it be better to have boundaries? As in, “mom, if you are going to come over please do not complain” but that is just me trying to control her behavior, isn’t it?