1 --- gtk+-2.24.33/modules/input/gtkimcontextxim.c.orig
2 +++ gtk+-2.24.33/modules/input/gtkimcontextxim.c
4 static void xim_info_display_closed (GdkDisplay *display,
7 +static void xim_instantiate_callback (Display *display, XPointer client_data,
10 static GObjectClass *parent_class;
13 if (info->display_closed_cb)
14 g_signal_handler_disconnect (display, info->display_closed_cb);
16 + if (info->reconnecting)
18 + GdkDisplay *display;
20 + display = gdk_screen_get_display (info->screen);
21 + XUnregisterIMInstantiateCallback (GDK_DISPLAY_XDISPLAY (display),
23 + xim_instantiate_callback,
28 + XIMCallback im_destroy_callback;
30 + im_destroy_callback.client_data = NULL;
31 + im_destroy_callback.callback = NULL;
32 + XSetIMValues (info->im,
33 + XNDestroyCallback, &im_destroy_callback,
37 XFree (info->xim_styles);
38 g_free (info->locale);