Remove unnecessary warning
authorEmmanuele Bassi <ebassi@gnome.org>
Thu, 24 Feb 2022 02:04:06 +0000 (02:04 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Thu, 24 Feb 2022 02:04:06 +0000 (02:04 +0000)
Unexporting the window handle on X11 is a no-op, so there's no need
to emit a warning.

gtk/gtkwindow.c

index d9856d8b5edc3a5bdb6d4eaae5ae3a0a15038354..9c58c36f1bbb63fe896e7ae9770e49d25f57da2d 100644 (file)
@@ -6324,6 +6324,10 @@ gtk_window_unexport_handle (GtkWindow *window)
       return;
     }
 #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_OBJECT_TYPE_NAME (priv->surface));