The observed behavior is prevented if Xorg instead of Wayland is used for the login screen in gdm3. Therefore, edit section [daemon] in /etc/gdm3/daemon.conf as follows:
/etc/gdm3/daemon.conf: [daemon] # Uncomment the line below to force the login screen to use Xorg WaylandEnable=false