its an upstream issue, you just have to google “gnome wayland windows focus bug” and it should throw up this https://www.reddit.com/r/archlinux/comments/113fuz6/gnome_433_focusselectwindow_bug/ and this https://www.reddit.com/r/gnome/comments/115j5l8/wayland_window_focus_bug_after_updating_to_433/