Reason of focus loss is different in mantic&later (GNOME 40 series) than before (GNOME 3 series). For GNOME 40 series, I have temporarily applied a workaround in my personal configuration to disable the lock screen, but wouldn't recommend that in a work or school computer.
** Tags added: noble -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2009712 Title: Gnome lock screen loses focus if a window opens while screen is locked To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2009712/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs