As far as I remember, this problem was not present in the previous versions of Ubuntu (Xorg):
After selecting "Switch input sources individually for each window" at the "GNOME Settings" / "Keyboard / Input source switching" section, the keyboard layout can be changed for each window using the keyboard shortcut (Windows Key+Space), however when the selection is attempted using the mouse, nothing is changed and the current layout stays as is.
As far as I remember, this problem was not present in the previous versions of Ubuntu (Xorg):
After selecting "Switch input sources individually for each window" at the "GNOME Settings" / "Keyboard / Input source switching" section, the keyboard layout can be changed for each window using the keyboard shortcut (Windows Key+Space), however when the selection is attempted using the mouse, nothing is changed and the current layout stays as is.
Wayland seems to work OK in this respect.
Ref: https:/ /askubuntu. com/questions/ 1436720/
ProblemType: Bug center 1:41.7- 0ubuntu0. 22.04.5 ature: Ubuntu 5.15.0- 52.58-generic 5.15.60 dules: nvidia_modeset nvidia esult: unknown center
DistroRelease: Ubuntu 22.04
Package: gnome-control-
ProcVersionSign
Uname: Linux 5.15.0-52-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: GNOME
Date: Sat Oct 22 19:02:15 2022
InstallationDate: Installed on 2019-03-08 (1324 days ago)
InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64 (20181017.3)
SourcePackage: gnome-control-
UpgradeStatus: Upgraded to jammy on 2022-04-29 (176 days ago)