[gtk/wip/Jehan/GtkIMContextWayland] modules: add a weak pointer to the GtkIMContextWayland.
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/Jehan/GtkIMContextWayland] modules: add a weak pointer to the GtkIMContextWayland.
- Date: Sun, 28 Jun 2020 14:54:33 +0000 (UTC)
commit 9ed8cadb4446a2b46da118802bbed3b094b2bf43
Author: Jehan <jehan girinstud io>
Date: Sun Jun 28 16:52:33 2020 +0200
modules: add a weak pointer to the GtkIMContextWayland.
modules/input/imwayland.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/modules/input/imwayland.c b/modules/input/imwayland.c
index 12d18a0f64..33c92e9f7b 100644
--- a/modules/input/imwayland.c
+++ b/modules/input/imwayland.c
@@ -749,6 +749,7 @@ gtk_im_context_wayland_focus_in (GtkIMContext *context)
if (context_wayland->gesture)
gtk_event_controller_reset (GTK_EVENT_CONTROLLER (context_wayland->gesture));
global->current = context;
+ g_object_add_weak_pointer (G_OBJECT (context), (gpointer *) &global->current);
if (global->focused)
enable (context_wayland);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]