mirror of
https://github.com/labwc/labwc.git
synced 2025-10-31 22:25:34 -04:00
foreign-toplevel: add ext-toplevel-list support
This commit is contained in:
parent
2a825008c6
commit
d6a48ab7a7
6 changed files with 137 additions and 0 deletions
|
|
@ -42,6 +42,27 @@ struct foreign_toplevel {
|
|||
|
||||
} wlr_toplevel;
|
||||
|
||||
struct ext_foreign_toplevel {
|
||||
struct wlr_ext_foreign_toplevel_handle_v1 *handle;
|
||||
|
||||
/* Client side events */
|
||||
struct {
|
||||
struct wl_listener handle_destroy;
|
||||
} on;
|
||||
|
||||
/* Compositor side state updates */
|
||||
struct {
|
||||
struct wl_listener new_app_id;
|
||||
struct wl_listener new_title;
|
||||
} on_view;
|
||||
|
||||
/* Internal signals */
|
||||
struct {
|
||||
struct wl_listener toplevel_destroy;
|
||||
} on_foreign_toplevel;
|
||||
|
||||
} ext_toplevel;
|
||||
|
||||
/* TODO: add struct xdg_x11_mapped_toplevel at some point */
|
||||
|
||||
struct {
|
||||
|
|
@ -50,6 +71,7 @@ struct foreign_toplevel {
|
|||
} events;
|
||||
};
|
||||
|
||||
void ext_foreign_toplevel_init(struct foreign_toplevel *toplevel);
|
||||
void wlr_foreign_toplevel_init(struct foreign_toplevel *toplevel);
|
||||
|
||||
void foreign_request_minimize(struct foreign_toplevel *toplevel, bool minimized);
|
||||
|
|
|
|||
|
|
@ -338,6 +338,7 @@ struct server {
|
|||
struct session_lock_manager *session_lock_manager;
|
||||
|
||||
struct wlr_foreign_toplevel_manager_v1 *foreign_toplevel_manager;
|
||||
struct wlr_ext_foreign_toplevel_list_v1 *foreign_toplevel_list;
|
||||
|
||||
struct wlr_drm_lease_v1_manager *drm_lease_manager;
|
||||
struct wl_listener drm_lease_request;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue