Skip to content

Instantly share code, notes, and snippets.

@whitequark
Last active August 29, 2015 13:59
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 whitequark/10594137 to your computer and use it in GitHub Desktop.
Save whitequark/10594137 to your computer and use it in GitHub Desktop.
Makes XCompose work in 64-bit Sublime Text build 3061 on Linux!
# Run as: $ GTK_IM_MODULE=xim gdb -script fix-xcompose-sublime-text-3061.gdb
file /opt/sublime_text/sublime_text
set follow-fork-mode child
set detach-on-fork off
run
inferior 2
set follow-fork-mode parent
set detach-on-fork on
b *0x5b3267
c
del 1
set $multicontext = (GtkIMMulticontext*) $r13
set $window = (GtkWindow*) $rbx
b gtk_widget_show if widget==$window
c
fin
del 2
call gtk_im_context_set_client_window($multicontext,$window->bin.container.widget.window)
detach inferiors 1 2
quit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment