mirror of
https://github.com/labwc/labwc.git
synced 2026-02-11 04:27:51 -05:00
foreign-toplevel: create generic abstraction
This commit is contained in:
parent
5e1f91c9d1
commit
2a825008c6
15 changed files with 463 additions and 196 deletions
|
|
@ -111,6 +111,7 @@ enum window_type {
|
|||
|
||||
struct view;
|
||||
struct wlr_surface;
|
||||
struct foreign_toplevel;
|
||||
|
||||
/* Common to struct view and struct xwayland_unmanaged */
|
||||
struct mappable {
|
||||
|
|
@ -265,16 +266,6 @@ struct view {
|
|||
struct multi_rect *rect;
|
||||
} resize_outlines;
|
||||
|
||||
struct foreign_toplevel {
|
||||
struct wlr_foreign_toplevel_handle_v1 *handle;
|
||||
struct wl_listener maximize;
|
||||
struct wl_listener minimize;
|
||||
struct wl_listener fullscreen;
|
||||
struct wl_listener activate;
|
||||
struct wl_listener close;
|
||||
struct wl_listener destroy;
|
||||
} toplevel;
|
||||
|
||||
struct mappable mappable;
|
||||
|
||||
struct wl_listener destroy;
|
||||
|
|
@ -287,6 +278,8 @@ struct view {
|
|||
struct wl_listener request_fullscreen;
|
||||
struct wl_listener set_title;
|
||||
|
||||
struct foreign_toplevel *foreign_toplevel;
|
||||
|
||||
struct {
|
||||
struct wl_signal new_app_id;
|
||||
struct wl_signal new_title;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue