From e0ffeb8ded2cb2c8a66d20754e174549cf1d24e7 Mon Sep 17 00:00:00 2001 From: Mat Date: Fri, 6 Sep 2024 16:12:56 +0000 Subject: [PATCH] macos: simplify access to native widget. --- gtk/gtkimcontextquartz.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gtk/gtkimcontextquartz.c b/gtk/gtkimcontextquartz.c index 736f11dc2c..cd99e6aae8 100644 --- a/gtk/gtkimcontextquartz.c +++ b/gtk/gtkimcontextquartz.c @@ -273,8 +273,7 @@ quartz_set_client_surface (GtkIMContext *context, if (widget != NULL) { - GtkRoot *root = gtk_widget_get_root (widget); - GtkNative *native = gtk_widget_get_native (GTK_WIDGET (root)); + GtkNative *native = GTK_NATIVE (gtk_widget_get_root (widget)); if (native != NULL) qc->client_surface = gtk_native_get_surface (native);