mirror of
https://github.com/swaywm/sway.git
synced 2026-04-18 06:46:56 -04:00
chore: chase wlroots xdg-surface role rework
This commit is contained in:
parent
363c57984d
commit
a908651821
3 changed files with 8 additions and 7 deletions
|
|
@ -56,7 +56,8 @@ static struct wlr_surface *layer_surface_at(struct sway_output *output,
|
|||
static bool surface_is_xdg_popup(struct wlr_surface *surface) {
|
||||
struct wlr_xdg_surface *xdg_surface =
|
||||
wlr_xdg_surface_try_from_wlr_surface(surface);
|
||||
return xdg_surface != NULL && xdg_surface->role == WLR_XDG_SURFACE_ROLE_POPUP;
|
||||
return xdg_surface != NULL && xdg_surface->role == WLR_XDG_SURFACE_ROLE_POPUP &&
|
||||
xdg_surface->popup != NULL;
|
||||
}
|
||||
|
||||
static struct wlr_surface *layer_surface_popup_at(struct sway_output *output,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue