summaryrefslogtreecommitdiff
path: root/extra/gcin/gtk3-crash.patch
diff options
context:
space:
mode:
Diffstat (limited to 'extra/gcin/gtk3-crash.patch')
-rw-r--r--extra/gcin/gtk3-crash.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/extra/gcin/gtk3-crash.patch b/extra/gcin/gtk3-crash.patch
new file mode 100644
index 000000000..17cfa6c2d
--- /dev/null
+++ b/extra/gcin/gtk3-crash.patch
@@ -0,0 +1,12 @@
+diff -aur old/gtk3-im/gtkimcontextgcin.c new/gtk3-im/gtkimcontextgcin.c
+--- old/gtk3-im/gtkimcontextgcin.c 2011-08-31 09:14:58.000000000 -0700
++++ new/gtk3-im/gtkimcontextgcin.c 2011-09-04 13:29:58.838065420 -0700
+@@ -127,6 +127,8 @@
+ {
+ GdkWindow *client_window = context_xim->client_window;
+ GdkScreen *screen = gdk_window_get_screen (client_window);
++ if (screen == NULL)
++ return;
+ GdkDisplay *display = gdk_screen_get_display (screen);
+ if (!context_xim->gcin_ch) {
+ if (!(context_xim->gcin_ch = gcin_im_client_open(GDK_DISPLAY_XDISPLAY(gdk_display_get_default()))))