xdg-shell: fix inert xdg_surface handling

Closes: https://github.com/swaywm/sway/issues/4834
Closes: https://github.com/swaywm/wlroots/issues/1890
This commit is contained in:
Simon Ser 2019-12-24 13:59:38 +01:00 committed by Drew DeVault
parent 31f721286a
commit 7e521fed97
2 changed files with 20 additions and 1 deletions

View file

@ -244,6 +244,11 @@ struct wlr_xdg_toplevel_show_window_menu_event {
struct wlr_xdg_shell *wlr_xdg_shell_create(struct wl_display *display);
/** Returns the wlr_xdg_surface from an xdg_surface resource.
*
* Aborts if the resource doesn't have the correct type. Returns NULL if the
* resource is inert.
*/
struct wlr_xdg_surface *wlr_xdg_surface_from_resource(
struct wl_resource *resource);
struct wlr_xdg_surface *wlr_xdg_surface_from_popup_resource(