GtkMountOperation assumes X11, throws exception on Wayland
In Nautilus, if I put something in the Trash and immediate eject / unmount, when g_mount_unmount_with_operation() is called, I get an exception
invalid cast from 'GdkWaylandDisplay' to 'GdkX11Display'
In gtkmountoperation.c it calls
lookup_context = _gtk_mount_operation_lookup_context_get (gtk_widget_get_display (mount_operation->priv->process_tree_view));
_gtk_mount_operation_lookup_context_get() is in gtkmnountoperation-x11.c which calls
get_window_list (context->display,
gdk_x11_display_get_xdisplay (context->display),
gdk_x11_display_get_xrootwindow (context->display),
gdk_x11_get_xatom_by_name_for_display (context->display,
"_NET_CLIENT_LIST"),
&mapping,
&mapping_length);
gdk_x11_get_xatom_by_name_for_display()
tries to cast GdkWaylandDisplay to GdkX11Display.
Edited by Corey Berla