After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 773916 - GtkComposeTable caches broken: using a same ~/.XCompose does not work twice in a row
GtkComposeTable caches broken: using a same ~/.XCompose does not work twice i...
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Input Methods
3.22.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2016-11-03 21:40 UTC by Thibaut Girka
Modified: 2016-11-10 19:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix loading cached compose tables (293 bytes, patch)
2016-11-06 21:49 UTC, Thibaut Girka
committed Details | Review

Description Thibaut Girka 2016-11-03 21:40:47 UTC
Hello,

I've long thought there were no support for ~/.XCompose in Gtk+3 on Wayland,
but it seems there should be some basic support. And indeed there is. However,
using the same ~/.XCompose more than once with GtkIMContextSimple will silently fail, suggesting that loading cached compose tables is the issue.

I have not investigated further.

Steps to reproduce:
1. Create a ~/.XCompose file with the following contents:
<Multi_key> <t> <e> <s> <t> : "A"
2. Start a gtk-3 application on wayland and type compose t e s t
  This should print “A”
3. Close the gtk-3 application
4. Start a gtk-3 application again and type compose t e s t
  This should print “st”
Comment 1 Thibaut Girka 2016-11-06 21:49:32 UTC
Created attachment 339209 [details] [review]
Fix loading cached compose tables

After reading the code for a bit, I think I found the issue: the cache loading code sets the number of sequences incorrectly, using the wrong variable…
Comment 2 Matthias Clasen 2016-11-10 19:33:12 UTC
Attachment 339209 [details] pushed as 641b42f - Fix loading cached compose tables