Bug 896490

Summary: keyboard layout switching is slow (not instant) which is really disturbing while typing
Product: [Fedora] Fedora Reporter: Hedayat Vatankhah <hedayatv>
Component: gnome-settings-daemonAssignee: Bastien Nocera <bnocera>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 18CC: bnocera, kem, mkasik, rstrode, tiagomatos
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-04-02 23:03:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Hedayat Vatankhah 2013-01-17 12:22:38 UTC
Description of problem:
In Fedora 18, keyboard layout switching is slow. Previously, when I pressed the shortcut to switch the layout and started typing right after that, new characters appeared with the new layout. However, in Fedora 18, when I change the layout and start typing, a few characters appear with the previous layout and then the new layout is used, which is really frustrating when you are typing fast. For example, I'm typing in English. NOW, I press Alt+Shift to switch the layout to 'fa' and press a few keys: "sgام". Look! The first two characters are English, and the two others are Persian (fa). Sometimes it takes even a few words to switch! It also happens when I switch back to English (a few letters are written in 'fa' layout and then it starts writing in English.

Version-Release number of selected component (if applicable):
gnome-settings-daemon-3.6.3-2.fc18.x86_64

How reproducible:
most of the time when typing fast. The delay varies, sometimes unnoticeable and sometimes even a few seconds! 

Steps to Reproduce:
1. Enable two keyboard layouts (e.g. 'en' and 'fa')
2. Type in 'en', then press the shortcut to change the layout and type immediately again. If you didn't observe the bug, repeat this step. a few tries should be enough. On very fast systems it might not happen, however in not-so-old system it happens (my laptop has a 1.8 Core 2 Due CPU). Also, it never happened in previous Gnome's like 3.4 or older ones in the same system.

  
Actual results:
In most of the times, the layout is not switched immediately.

Expected results:
Any keys pressed right after pressing the switching shortcut should be written with the new layout.

Comment 1 Hedayat Vatankhah 2013-01-28 18:34:56 UTC
The bug is seen by users of other distros too. gnome bugzilla reference added.

Comment 2 Rui Matos 2013-04-02 23:03:35 UTC
I'll close this since the bug is being tracked and progressing upstream.