mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-03-26 07:58:10 -04:00
view: hide maximize and center functions
This is now handled in view_position.
This commit is contained in:
parent
a4a3a4954a
commit
29009ddd77
2 changed files with 2 additions and 4 deletions
4
view.c
4
view.c
|
|
@ -24,7 +24,7 @@ view_activate(struct cg_view *view, bool activate)
|
||||||
view->activate(view, activate);
|
view->activate(view, activate);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
view_maximize(struct cg_view *view)
|
view_maximize(struct cg_view *view)
|
||||||
{
|
{
|
||||||
struct cg_output *output = view->server->output;
|
struct cg_output *output = view->server->output;
|
||||||
|
|
@ -34,7 +34,7 @@ view_maximize(struct cg_view *view)
|
||||||
view->maximize(view, output_width, output_height);
|
view->maximize(view, output_width, output_height);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
view_center(struct cg_view *view)
|
view_center(struct cg_view *view)
|
||||||
{
|
{
|
||||||
struct cg_server *server = view->server;
|
struct cg_server *server = view->server;
|
||||||
|
|
|
||||||
2
view.h
2
view.h
|
|
@ -52,8 +52,6 @@ struct cg_view {
|
||||||
};
|
};
|
||||||
|
|
||||||
void view_activate(struct cg_view *view, bool activate);
|
void view_activate(struct cg_view *view, bool activate);
|
||||||
void view_maximize(struct cg_view *view);
|
|
||||||
void view_center(struct cg_view *view);
|
|
||||||
void view_for_each_surface(struct cg_view *view, wlr_surface_iterator_func_t iterator, void *data);
|
void view_for_each_surface(struct cg_view *view, wlr_surface_iterator_func_t iterator, void *data);
|
||||||
struct wlr_surface *view_wlr_surface_at(struct cg_view *view, double sx, double sy,
|
struct wlr_surface *view_wlr_surface_at(struct cg_view *view, double sx, double sy,
|
||||||
double *sub_x, double *sub_y);
|
double *sub_x, double *sub_y);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue