diff options
author | Simon Ser <contact@emersion.fr> | 2019-12-24 13:59:38 +0100 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-12-30 14:24:35 -0700 |
commit | 7e521fed9799d94b90bfd7f11951736d98fe30f8 (patch) | |
tree | e2b1a5a40d419fe9854c42c7d239be80de57da7c /include/wlr | |
parent | 31f721286a23851a4fe5f0b6ee4fc324bdd79fef (diff) |
xdg-shell: fix inert xdg_surface handling
Closes: https://github.com/swaywm/sway/issues/4834
Closes: https://github.com/swaywm/wlroots/issues/1890
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_xdg_shell.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_xdg_shell.h b/include/wlr/types/wlr_xdg_shell.h index 7c787a16..4bd286ce 100644 --- a/include/wlr/types/wlr_xdg_shell.h +++ b/include/wlr/types/wlr_xdg_shell.h @@ -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( |