diff options
Diffstat (limited to 'gdk')
-rw-r--r-- | gdk/wayland/gdktoplevel-wayland.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gdk/wayland/gdktoplevel-wayland.c b/gdk/wayland/gdktoplevel-wayland.c index efeb857b21..efe9ef86ce 100644 --- a/gdk/wayland/gdktoplevel-wayland.c +++ b/gdk/wayland/gdktoplevel-wayland.c @@ -2557,6 +2557,20 @@ gdk_wayland_toplevel_export_handle (GdkToplevel *toplevel, void gdk_wayland_toplevel_unexport_handle (GdkToplevel *toplevel) { + GdkWaylandToplevel *wayland_toplevel = GDK_WAYLAND_TOPLEVEL (toplevel); + + if (wayland_toplevel->exported != NULL && + wayland_toplevel->exported->next == NULL) + { + GdkWaylandExported *exported = wayland_toplevel->exported->data; + + if (exported->handle) + { + gdk_toplevel_unexport_handle (toplevel, exported->handle); + return; + } + } + g_warning ("Use gdk_wayland_toplevel_drop_exported_handle()"); } |