mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-10-02 14:03:39 +00:00
window: Drop actual wayland export handle
We've not been dropping handles properly, and we've been getting
warnings from gdk_wayland_toplevel_real_unexport_handle() as such.
This is because we are passing the "wayland:"-prefixed string, but
the actual wayland export handle is only the part after the colon.
Fixes a regression from commit ad865de618
(cherry picked from commit 4fc8812040520f40ef01f8b016c02018077e4c23)
This commit is contained in:
parent
fa7b77fe6c
commit
fceb9ee923
|
@ -2177,10 +2177,11 @@ nautilus_window_unexport_handle (NautilusWindow *window)
|
||||||
if (GDK_IS_WAYLAND_DISPLAY (gtk_widget_get_display (GTK_WIDGET (window))))
|
if (GDK_IS_WAYLAND_DISPLAY (gtk_widget_get_display (GTK_WIDGET (window))))
|
||||||
{
|
{
|
||||||
GdkSurface *gdk_surface = gtk_native_get_surface (GTK_NATIVE (window));
|
GdkSurface *gdk_surface = gtk_native_get_surface (GTK_NATIVE (window));
|
||||||
if (GDK_IS_WAYLAND_TOPLEVEL (gdk_surface))
|
if (GDK_IS_WAYLAND_TOPLEVEL (gdk_surface) &&
|
||||||
|
g_str_has_prefix (window->export_handle, "wayland:"))
|
||||||
{
|
{
|
||||||
gdk_wayland_toplevel_drop_exported_handle (GDK_WAYLAND_TOPLEVEL (gdk_surface),
|
gdk_wayland_toplevel_drop_exported_handle (GDK_WAYLAND_TOPLEVEL (gdk_surface),
|
||||||
window->export_handle);
|
window->export_handle + strlen ("wayland:"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue