aboutsummaryrefslogtreecommitdiff
path: root/include/rootston
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-03-09 10:29:22 +0100
committeremersion <contact@emersion.fr>2018-03-09 10:29:22 +0100
commitc27fd1e1ee9826ea0668d2bb5aa8644daec29a7f (patch)
treef75239836bc4a25b1f184dc12b8ba7a7acaa49ee /include/rootston
parentbfc0e95d2cfeab96d771cb34e78ca92afee4464c (diff)
rootston: add view_map and view_unmap
Diffstat (limited to 'include/rootston')
-rw-r--r--include/rootston/desktop.h6
-rw-r--r--include/rootston/view.h1
2 files changed, 4 insertions, 3 deletions
diff --git a/include/rootston/desktop.h b/include/rootston/desktop.h
index 467de8ab..61fe47b0 100644
--- a/include/rootston/desktop.h
+++ b/include/rootston/desktop.h
@@ -71,14 +71,16 @@ struct roots_output *desktop_output_from_wlr_output(
struct roots_view *desktop_view_at(struct roots_desktop *desktop, double lx,
double ly, struct wlr_surface **surface, double *sx, double *sy);
-void view_init(struct roots_view *view, struct roots_desktop *desktop);
-void view_finish(struct roots_view *view);
+struct roots_view *view_create(struct roots_desktop *desktop);
+void view_destroy(struct roots_view *view);
void view_activate(struct roots_view *view, bool activate);
void view_apply_damage(struct roots_view *view);
void view_damage_whole(struct roots_view *view);
void view_update_position(struct roots_view *view, double x, double y);
void view_update_size(struct roots_view *view, uint32_t width, uint32_t height);
void view_initial_focus(struct roots_view *view);
+void view_map(struct roots_view *view, struct wlr_surface *surface);
+void view_unmap(struct roots_view *view);
void handle_xdg_shell_v6_surface(struct wl_listener *listener, void *data);
void handle_xdg_shell_surface(struct wl_listener *listener, void *data);
diff --git a/include/rootston/view.h b/include/rootston/view.h
index ff5ef44a..66a0cb3d 100644
--- a/include/rootston/view.h
+++ b/include/rootston/view.h
@@ -181,7 +181,6 @@ struct roots_xdg_popup {
struct wl_listener new_popup;
};
-struct roots_view *view_create();
void view_get_box(const struct roots_view *view, struct wlr_box *box);
void view_activate(struct roots_view *view, bool active);
void view_move(struct roots_view *view, double x, double y);