You absolutely can, but trademarks need to be domain-specific. And the social media platform and the window system don’t have much overlap in their respective domains.
Another window system couldn’t come along and call itself “X”, but a microwave manufacturer very well might be able to.
Having been on Linux for over a year now, I don’t. It’s still plagued by instability, weird bugs, and big limitations whenever non-Steam games are involved.