Thanks for the info, and it works! I updated my .bashrc
below.
.bashrc
# Wayland
# https://wiki.archlinux.org/title/Wayland
# https://discussion.fedoraproject.org/t/tips-of-xwayland-with-sway/74757
if [ "${XDG_SESSION_TYPE}" = wayland ]; then
export MOZ_ENABLE_WAYLAND=1
# For Gimp
export GDK_BACKEND=x11
# For Java application
export _JAVA_AWT_WM_NONREPARENTING=1
else
unset MOZ_ENABLE_WAYLAND
unset GDK_BACKEND
unset _JAVA_AWT_WM_NONREPARENTING
fi
Okay.