Skip to content

Instantly share code, notes, and snippets.

@godlike64
Created June 24, 2021 22:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save godlike64/5422d5cd5fca3cf2f6f0b787f242ba4b to your computer and use it in GitHub Desktop.
Save godlike64/5422d5cd5fca3cf2f6f0b787f242ba4b to your computer and use it in GitHub Desktop.
GTK+-3.24.29 dead keys fix
# This patch fixes GTK+'s bug with defaulting to preedit behaviour on all dead keys.
# I don't care what anybody says, this is a bug, and it also interferes with the mouse selection clipboard.
# GTK+ devs have already stated they will not bring back the old behaviour via a config option or anything.
# Something about the test matrix or something.
# This patch applies cleanly to 3.24.29, might need modifications in the future.
--- a/gtk/gtkimcontextsimple.c 2021-06-24 17:46:38.074377933 -0300
+++ b/gtk/gtkimcontextsimple.c 2021-06-24 17:46:44.133320360 -0300
@@ -1109,7 +1109,7 @@
gunichar ch;
gboolean need_space;
- if (is_dead_key (priv->compose_buffer[i]))
+ if (FALSE && is_dead_key (priv->compose_buffer[i]))
{
ch = dead_key_to_unicode (priv->compose_buffer[i], &need_space);
if (ch)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment