What Onboard exactly does at the point of the layout switch is calling XSync() right after XTestFakeKeyEvent() (not remapping the layout on the fly, which it can do to). So its probably the same bug #837456.
I'm still hesitant to duplicate. That bug is so old and nothing ever came from it. I feel we need get more specific and then talk straight to upstream, whoever that will be. I have some tiny sample code that generates a MappingNotify event, seemingly for no reason. If we find the source of that we're perhaps a bit closer to a solution. ** Attachment added: "Sample code triggering MappingNotify event" https://bugs.launchpad.net/ubuntu/+source/onboard/+bug/1562381/+attachment/4655413/+files/xmappingnotify.c -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to onboard in Ubuntu. https://bugs.launchpad.net/bugs/1562381 Title: Typing special characters with non-US layout get repeated indefinitely Status in onboard package in Ubuntu: Confirmed Bug description: Typing special characters like .,:;-()"@# (and other) or numbers with non-US keyboard layout get repeated indefinitely, like this: тест............................................................................................... This will continue to happen untl other symbol is entered or other button is pressed. Reproducible with GTK and Xinput. Testng was done on Ubuntu Gnome 16.04. ProblemType: Bug DistroRelease: Ubuntu 16.04 Package: onboard 1.2.0-0ubuntu4 ProcVersionSignature: Ubuntu 4.4.0-15.31-generic 4.4.6 Uname: Linux 4.4.0-15-generic x86_64 ApportVersion: 2.20-0ubuntu3 Architecture: amd64 CurrentDesktop: GNOME Date: Sun Mar 27 02:29:05 2016 InstallationDate: Installed on 2016-03-19 (6 days ago) InstallationMedia: Ubuntu-GNOME 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160319) ProcEnviron: TERM=xterm-256color PATH=(custom, no user) XDG_RUNTIME_DIR=<set> LANG=ru_RU.UTF-8 SHELL=/bin/bash SourcePackage: onboard UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/onboard/+bug/1562381/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp

