Remove unnecessary warning

Unexporting the window handle on X11 is a no-op, so there's no need
to emit a warning.
This commit is contained in:
Emmanuele Bassi 2022-02-24 02:04:06 +00:00
parent 572a884e90
commit 226f0e0567

View File

@ -6324,6 +6324,10 @@ gtk_window_unexport_handle (GtkWindow *window)
return; return;
} }
#endif #endif
#ifdef GDK_WINDOWING_X11
if (GDK_IS_X11_DISPLAY (gtk_widget_get_display (GTK_WIDGET (window))))
return;
#endif
g_warning ("Couldn't unexport handle for %s surface, unsupported windowing system", g_warning ("Couldn't unexport handle for %s surface, unsupported windowing system",
G_OBJECT_TYPE_NAME (priv->surface)); G_OBJECT_TYPE_NAME (priv->surface));