mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +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,7 +138,8 @@ pk_search_mime_async (GtkAppChooserOnline *obj,
|
||||
|
||||
#ifdef GDK_WINDOWING_X11
|
||||
window = gtk_widget_get_window (GTK_WIDGET (parent));
|
||||
xid = GDK_WINDOW_XID (window);
|
||||
if (GDK_IS_X11_WINDOW (window))
|
||||
xid = GDK_WINDOW_XID (window);
|
||||
#endif
|
||||
|
||||
mime_types[0] = content_type;
|
||||
|
Loading…
Reference in New Issue
Block a user