diff --git a/xpra/x11/server/core.py b/xpra/x11/server/core.py index 85e23d3f06..24c7ff2674 100644 --- a/xpra/x11/server/core.py +++ b/xpra/x11/server/core.py @@ -245,7 +245,7 @@ def set_keyboard_layout_group(self, grp: int) -> None: return if grp < 0: grp = 0 - if self.current_keyboard_group != grp: + if self.current_keyboard_group == grp: keylog(f"set_keyboard_layout_group({grp}) ignored, value unchanged") return keylog(f"set_keyboard_layout_group({grp}) config={self.keyboard_config}, {self.current_keyboard_group=}")