mirror of
https://github.com/cage-kiosk/cage.git
synced 2025-10-29 05:40:19 -04:00
xdg_shell: only track toplevel xdg surfaces
We don't need to manage popups, but in
786e28bdac we ended up doing so. This
reverts Cage's behavior.
This commit is contained in:
parent
5f60b0a00c
commit
f47a76c9be
1 changed files with 4 additions and 0 deletions
|
|
@ -85,6 +85,10 @@ handle_xdg_shell_surface_new(struct wl_listener *listener, void *data)
|
|||
struct cg_server *server = wl_container_of(listener, server, new_xdg_shell_surface);
|
||||
struct wlr_xdg_surface *xdg_surface = data;
|
||||
|
||||
if (xdg_surface->role != WLR_XDG_SURFACE_ROLE_TOPLEVEL) {
|
||||
return;
|
||||
}
|
||||
|
||||
struct cg_view *view = cg_view_create(server);
|
||||
view->type = CAGE_XDG_SHELL_VIEW;
|
||||
view->xdg_surface = xdg_surface;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue