mirror of
https://github.com/cage-kiosk/cage.git
synced 2025-10-29 05:40:19 -04:00
Drop cg_view_child
This is now unused.
This commit is contained in:
parent
79950cd691
commit
7a7325c0ee
2 changed files with 0 additions and 38 deletions
26
view.c
26
view.c
|
|
@ -24,25 +24,6 @@
|
|||
#include "xwayland.h"
|
||||
#endif
|
||||
|
||||
void
|
||||
view_child_finish(struct cg_view_child *child)
|
||||
{
|
||||
if (!child) {
|
||||
return;
|
||||
}
|
||||
|
||||
wl_list_remove(&child->link);
|
||||
}
|
||||
|
||||
void
|
||||
view_child_init(struct cg_view_child *child, struct cg_view *view, struct wlr_surface *wlr_surface)
|
||||
{
|
||||
child->view = view;
|
||||
child->wlr_surface = wlr_surface;
|
||||
|
||||
wl_list_insert(&view->children, &child->link);
|
||||
}
|
||||
|
||||
char *
|
||||
view_get_title(struct cg_view *view)
|
||||
{
|
||||
|
|
@ -120,11 +101,6 @@ view_unmap(struct cg_view *view)
|
|||
{
|
||||
wl_list_remove(&view->link);
|
||||
|
||||
struct cg_view_child *child, *tmp;
|
||||
wl_list_for_each_safe (child, tmp, &view->children, link) {
|
||||
child->destroy(child);
|
||||
}
|
||||
|
||||
wlr_scene_node_destroy(view->scene_node);
|
||||
|
||||
view->wlr_surface = NULL;
|
||||
|
|
@ -180,8 +156,6 @@ view_init(struct cg_view *view, struct cg_server *server, enum cg_view_type type
|
|||
view->server = server;
|
||||
view->type = type;
|
||||
view->impl = impl;
|
||||
|
||||
wl_list_init(&view->children);
|
||||
}
|
||||
|
||||
struct cg_view *
|
||||
|
|
|
|||
12
view.h
12
view.h
|
|
@ -24,7 +24,6 @@ enum cg_view_type {
|
|||
struct cg_view {
|
||||
struct cg_server *server;
|
||||
struct wl_list link; // server::views
|
||||
struct wl_list children; // cg_view_child::link
|
||||
struct wlr_surface *wlr_surface;
|
||||
struct wlr_scene_node *scene_node;
|
||||
|
||||
|
|
@ -45,14 +44,6 @@ struct cg_view_impl {
|
|||
void (*destroy)(struct cg_view *view);
|
||||
};
|
||||
|
||||
struct cg_view_child {
|
||||
struct cg_view *view;
|
||||
struct wlr_surface *wlr_surface;
|
||||
struct wl_list link;
|
||||
|
||||
void (*destroy)(struct cg_view_child *child);
|
||||
};
|
||||
|
||||
char *view_get_title(struct cg_view *view);
|
||||
bool view_is_primary(struct cg_view *view);
|
||||
bool view_is_transient_for(struct cg_view *child, struct cg_view *parent);
|
||||
|
|
@ -65,7 +56,4 @@ void view_init(struct cg_view *view, struct cg_server *server, enum cg_view_type
|
|||
|
||||
struct cg_view *view_from_wlr_surface(struct cg_server *server, struct wlr_surface *surface);
|
||||
|
||||
void view_child_finish(struct cg_view_child *child);
|
||||
void view_child_init(struct cg_view_child *child, struct cg_view *view, struct wlr_surface *wlr_surface);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue