projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
572a884
)
Remove unnecessary warning
author
Emmanuele Bassi
<ebassi@gnome.org>
Thu, 24 Feb 2022 02:04:06 +0000
(
02:04
+0000)
committer
Emmanuele 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
patch
|
blob
|
history
diff --git
a/gtk/gtkwindow.c
b/gtk/gtkwindow.c
index d9856d8b5edc3a5bdb6d4eaae5ae3a0a15038354..9c58c36f1bbb63fe896e7ae9770e49d25f57da2d 100644
(file)
--- a/
gtk/gtkwindow.c
+++ b/
gtk/gtkwindow.c
@@
-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));