aboutsummaryrefslogtreecommitdiff
path: root/rt/src/util.c
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2026-01-04 21:41:39 -0700
committerJosh Rahm <joshuarahm@gmail.com>2026-01-04 21:41:39 -0700
commit9637f06dd40418bd01cde0fe9f33d4fe979555ab (patch)
treec41c136ed52aee4a4b74818531b05c55b938deb8 /rt/src/util.c
parent5e86dbfa1bb30c8b1f36582e1a5229a208c5bff4 (diff)
downloadmontis-9637f06dd40418bd01cde0fe9f33d4fe979555ab.tar.gz
montis-9637f06dd40418bd01cde0fe9f33d4fe979555ab.tar.bz2
montis-9637f06dd40418bd01cde0fe9f33d4fe979555ab.zip
[refactor] Change dragging behavior to use the motion event.
Diffstat (limited to 'rt/src/util.c')
-rw-r--r--rt/src/util.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/rt/src/util.c b/rt/src/util.c
index d02c07c..6576770 100644
--- a/rt/src/util.c
+++ b/rt/src/util.c
@@ -12,7 +12,6 @@ static struct montis_server *server_from_ctx(void *ctx)
static struct montis_toplevel *toplevel_at(struct montis_server *server,
double lx, double ly)
{
- struct wlr_surface *surface = NULL;
double sx = 0.0;
double sy = 0.0;
@@ -28,9 +27,6 @@ static struct montis_toplevel *toplevel_at(struct montis_server *server,
return NULL;
}
- surface = scene_surface->surface;
- (void)surface;
-
struct wlr_scene_tree *tree = node->parent;
while (tree != NULL && tree->node.data == NULL) {
tree = tree->node.parent;
@@ -38,16 +34,6 @@ static struct montis_toplevel *toplevel_at(struct montis_server *server,
return tree ? tree->node.data : NULL;
}
-void montis_plugin_get_cursor_position(void *ctx, double *x, double *y)
-{
- if (!ctx || !x || !y) {
- return;
- }
- struct montis_server *server = server_from_ctx(ctx);
- *x = server->cursor->x;
- *y = server->cursor->y;
-}
-
void *montis_plugin_toplevel_at(void *ctx, double lx, double ly)
{
if (!ctx) {