mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-19 06:47:02 -04:00
Merge branch 'xdg-role-object-from-surface' into 'master'
xdg-shell: add/use wlr_xdg_{toplevel,popup}_from_wlr_xdg_surface()
See merge request wlroots/wlroots!4786
This commit is contained in:
commit
198b8b09ac
4 changed files with 53 additions and 22 deletions
|
|
@ -514,6 +514,15 @@ struct wlr_xdg_surface *wlr_xdg_surface_try_from_wlr_surface(struct wlr_surface
|
|||
*/
|
||||
struct wlr_xdg_toplevel *wlr_xdg_toplevel_try_from_wlr_surface(struct wlr_surface *surface);
|
||||
|
||||
/**
|
||||
* Get a struct wlr_xdg_toplevel from a struct wlr_xdg_surface.
|
||||
*
|
||||
* Returns NULL if the xdg_surface doesn't have the xdg_toplevel role or if the
|
||||
* xdg_toplevel has been destroyed.
|
||||
*/
|
||||
struct wlr_xdg_toplevel *wlr_xdg_toplevel_try_from_wlr_xdg_surface(
|
||||
struct wlr_xdg_surface *xdg_surface);
|
||||
|
||||
/**
|
||||
* Get a struct wlr_xdg_popup from a struct wlr_surface.
|
||||
*
|
||||
|
|
@ -523,6 +532,15 @@ struct wlr_xdg_toplevel *wlr_xdg_toplevel_try_from_wlr_surface(struct wlr_surfac
|
|||
*/
|
||||
struct wlr_xdg_popup *wlr_xdg_popup_try_from_wlr_surface(struct wlr_surface *surface);
|
||||
|
||||
/**
|
||||
* Get a struct wlr_xdg_popup from a struct wlr_xdg_surface.
|
||||
*
|
||||
* Returns NULL if the xdg_surface doesn't have the xdg_popup role or if the
|
||||
* xdg_popup has been destroyed.
|
||||
*/
|
||||
struct wlr_xdg_popup *wlr_xdg_popup_try_from_wlr_xdg_surface(
|
||||
struct wlr_xdg_surface *xdg_surface);
|
||||
|
||||
/**
|
||||
* Get the surface geometry.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue