I found the problem and it was totally my fault. When I switched to endeavourOS I copied some stuff from my old .bashrc and .bash_profile. I don’t know why I added this bit for my previous distro but this was in my .bash_profile
if [ "$XDG_SESSION_TYPE" == "wayland" ]; then
export MOZ_ENABLE_WAYLAND=1
export QT_QPA_PLATFORM="wayland,xcb"
fi
I remember adding the firefox but not the other and it was causing the issue. Sorry for taking everyone’s time