aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@proton.me>2023-08-22 14:48:29 -0600
committerLeonardo Hernández Hernández <leohdz172@proton.me>2023-08-22 14:48:29 -0600
commit4b8c1bf31e9619db58eadf593617ba060d62418d (patch)
tree2d830669ee7b43578eba83e2a9ff11d3a904b804
parentd7569870b62233099af65ce6a048e2ec50d92b7b (diff)
return nothing in xytonode()
we do not use the node
-rw-r--r--dwl.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/dwl.c b/dwl.c
index 7f1e471..4ff5c37 100644
--- a/dwl.c
+++ b/dwl.c
@@ -315,7 +315,7 @@ static void urgent(struct wl_listener *listener, void *data);
static void view(const Arg *arg);
static void virtualkeyboard(struct wl_listener *listener, void *data);
static Monitor *xytomon(double x, double y);
-static struct wlr_scene_node *xytonode(double x, double y, struct wlr_surface **psurface,
+static void xytonode(double x, double y, struct wlr_surface **psurface,
Client **pc, LayerSurface **pl, double *nx, double *ny);
static void zoom(const Arg *arg);
@@ -2620,7 +2620,7 @@ xytomon(double x, double y)
return o ? o->data : NULL;
}
-struct wlr_scene_node *
+void
xytonode(double x, double y, struct wlr_surface **psurface,
Client **pc, LayerSurface **pl, double *nx, double *ny)
{
@@ -2649,7 +2649,6 @@ xytonode(double x, double y, struct wlr_surface **psurface,
if (psurface) *psurface = surface;
if (pc) *pc = c;
if (pl) *pl = l;
- return node;
}
void