diff options
Diffstat (limited to 'cross/src/util.c')
| -rw-r--r-- | cross/src/util.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/cross/src/util.c b/cross/src/util.c index 0c02dfe..6497d89 100644 --- a/cross/src/util.c +++ b/cross/src/util.c @@ -6,7 +6,7 @@ static struct montis_server *server_from_ctx(void *ctx) { - struct montis_server *server = wl_container_of(ctx, server, soul); + struct montis_server *server = wl_container_of(ctx, server, world); return server; } @@ -35,7 +35,7 @@ static struct montis_toplevel *toplevel_at(struct montis_server *server, return tree ? tree->node.data : NULL; } -void *arksoul_toplevel_at(void *ctx, double lx, double ly) +void *arkworld_toplevel_at(void *ctx, double lx, double ly) { if (!ctx) { return NULL; @@ -44,7 +44,7 @@ void *arksoul_toplevel_at(void *ctx, double lx, double ly) return toplevel_at(server, lx, ly); } -void arksoul_get_toplevel_position(void *toplevel, double *x, double *y) +void arkworld_get_toplevel_position(void *toplevel, double *x, double *y) { if (!toplevel || !x || !y) { return; @@ -54,7 +54,7 @@ void arksoul_get_toplevel_position(void *toplevel, double *x, double *y) *y = tl->scene_tree->node.y; } -void arksoul_set_toplevel_position(void *toplevel, double x, double y) +void arkworld_set_toplevel_position(void *toplevel, double x, double y) { if (!toplevel) { return; @@ -63,7 +63,7 @@ void arksoul_set_toplevel_position(void *toplevel, double x, double y) wlr_scene_node_set_position(&tl->scene_tree->node, (int)x, (int)y); } -void arksoul_get_toplevel_geometry(void *toplevel, double *x, double *y, +void arkworld_get_toplevel_geometry(void *toplevel, double *x, double *y, double *w, double *h) { if (!toplevel || !x || !y || !w || !h) { @@ -78,7 +78,7 @@ void arksoul_get_toplevel_geometry(void *toplevel, double *x, double *y, *h = geo_box.height; } -void arksoul_set_toplevel_geometry(void *toplevel, double x, double y, +void arkworld_set_toplevel_geometry(void *toplevel, double x, double y, double w, double h) { if (!toplevel) { @@ -89,7 +89,7 @@ void arksoul_set_toplevel_geometry(void *toplevel, double x, double y, wlr_xdg_toplevel_set_size(tl->xdg_toplevel, (int)w, (int)h); } -void arksoul_warp_cursor(void *ctx, double lx, double ly) +void arkworld_warp_cursor(void *ctx, double lx, double ly) { if (!ctx) { return; @@ -98,7 +98,7 @@ void arksoul_warp_cursor(void *ctx, double lx, double ly) wlr_cursor_warp(server->cursor, NULL, lx, ly); } -void arksoul_focus_toplevel(void *toplevel) +void arkworld_focus_toplevel(void *toplevel) { if (!toplevel) { return; |