[gtk/wip/matthiasc/popup5: 45/118] xim: Stop using child surface apis
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/popup5: 45/118] xim: Stop using child surface apis
- Date: Sun, 5 May 2019 17:42:58 +0000 (UTC)
commit 6a551766ea253f97d31042c2218d8d4b5cb2a640
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Mar 23 02:00:59 2019 -0400
xim: Stop using child surface apis
We no longer have child surfaces.
Drop code that only makes sense in
their presence.
gtk/gtkimcontextxim.c | 14 ++------------
1 file changed, 2 insertions(+), 12 deletions(-)
---
diff --git a/gtk/gtkimcontextxim.c b/gtk/gtkimcontextxim.c
index 1157286e4f..fe5f59e8eb 100644
--- a/gtk/gtkimcontextxim.c
+++ b/gtk/gtkimcontextxim.c
@@ -560,19 +560,9 @@ set_ic_client_surface (GtkIMContextXIM *context_xim,
if (context_xim->client_surface)
{
- GdkSurface *native;
-
context_xim->im_info = get_im (context_xim->client_surface, context_xim->locale);
context_xim->im_info->ics = g_slist_prepend (context_xim->im_info->ics, context_xim);
-
- for (native = client_surface; native; native = gdk_surface_get_parent (native))
- {
- if (gdk_surface_has_native (native))
- {
- context_xim->client_surface_xid = gdk_x11_surface_get_xid (native);
- break;
- }
- }
+ context_xim->client_surface_xid = gdk_x11_surface_get_xid (client_surface);
}
update_client_widget (context_xim);
@@ -641,7 +631,7 @@ gtk_im_context_xim_filter_keypress (GtkIMContext *context,
if (event_type == GDK_KEY_RELEASE && !context_xim->filter_key_release)
return FALSE;
- window = gdk_surface_get_toplevel (gdk_event_get_surface ((GdkEvent *) event));
+ window = gdk_event_get_surface ((GdkEvent *) event);
xevent.type = (event_type == GDK_KEY_PRESS) ? KeyPress : KeyRelease;
xevent.serial = 0; /* hope it doesn't matter */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]