xdg_shell: add support for wlr-foreign-toplevel-management

This commit is contained in:
GnSight 2025-10-01 11:53:09 +08:00
parent 2e593fe5a8
commit b35d0afae4
6 changed files with 129 additions and 9 deletions

View file

@ -7,6 +7,14 @@
#include "view.h"
struct cg_foreign_toplevel_handle {
struct cg_xdg_shell_view *view;
struct wl_listener request_activate;
struct wl_listener request_close;
struct wl_listener request_fullscreen;
};
struct cg_xdg_shell_view {
struct cg_view view;
struct wlr_xdg_toplevel *xdg_toplevel;
@ -16,6 +24,8 @@ struct cg_xdg_shell_view {
struct wl_listener unmap;
struct wl_listener map;
struct wl_listener request_fullscreen;
struct cg_foreign_toplevel_handle *foreign_toplevel;
};
struct cg_xdg_decoration {