mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
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:
parent
31f721286a
commit
7e521fed97
2 changed files with 20 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue