Bug 461373
Summary: | KDE BUG#167982: Focus switch causes selected text to be deleted in Kate. | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Alexander Gavrilov <angavrilov> | ||||||
Component: | scim-bridge | Assignee: | Peng Huang <phuang> | ||||||
Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 9 | CC: | marco.crosio, petersen | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | i386 | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2008-10-04 08:41:14 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Created attachment 315961 [details]
A stopgap patch to scim-bridge-qt
Fixed in scim-bridge-0_4_15-7. Thanks. *** This bug has been marked as a duplicate of bug 464397 *** |
Created attachment 315960 [details] Stack trace of the text deletion event. Description of problem: On a KDE4.1 system with Qt SCIM bridge installed and configured, selecting a region of text in Kate or KWrite and then switching to another application and back causes the text to be deleted. Version-Release number of selected component (if applicable): Fedora 9 + all updates + currently pending KDE4.1 update How reproducible: On an appropriately configured system, 100% predictable results. Additional info: I debugged the problem to produce a stack trace, and made a patch for scim-bridge-qt that fixes it for me. Note that this is the first time I ever had to fix anything in Qt/SCIM, so my analysis might be wrong: The bug is caused by preedit string update events that were sent by scim-bridge during the focus change sequence. Problems: 1) QInputContext::setFocusWidget() is called before focus_out() 2) Preedit string hide event is sent even if it wasn't displayed. As a result, when the focus is switched in, the _target_ Kate widget receives a preedit event, and trashes its selection.