mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-14 22:30:22 +00:00
Avoid a warning under Wayland
Just having an ifdef is not enough, we need to check the type of the window at runtime.
This commit is contained in:
parent
8822b07292
commit
1f8286004f
@ -138,6 +138,7 @@ pk_search_mime_async (GtkAppChooserOnline *obj,
|
|||||||
|
|
||||||
#ifdef GDK_WINDOWING_X11
|
#ifdef GDK_WINDOWING_X11
|
||||||
window = gtk_widget_get_window (GTK_WIDGET (parent));
|
window = gtk_widget_get_window (GTK_WIDGET (parent));
|
||||||
|
if (GDK_IS_X11_WINDOW (window))
|
||||||
xid = GDK_WINDOW_XID (window);
|
xid = GDK_WINDOW_XID (window);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user