return nothing in xytonode()

we do not use the node
This commit is contained in:
Leonardo Hernández Hernández 2023-08-22 14:48:29 -06:00
parent d7569870b6
commit 4b8c1bf31e
No known key found for this signature in database
GPG Key ID: E538897EE11B9624

5
dwl.c
View File

@ -315,7 +315,7 @@ static void urgent(struct wl_listener *listener, void *data);
static void view(const Arg *arg); static void view(const Arg *arg);
static void virtualkeyboard(struct wl_listener *listener, void *data); static void virtualkeyboard(struct wl_listener *listener, void *data);
static Monitor *xytomon(double x, double y); 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); Client **pc, LayerSurface **pl, double *nx, double *ny);
static void zoom(const Arg *arg); static void zoom(const Arg *arg);
@ -2620,7 +2620,7 @@ xytomon(double x, double y)
return o ? o->data : NULL; return o ? o->data : NULL;
} }
struct wlr_scene_node * void
xytonode(double x, double y, struct wlr_surface **psurface, xytonode(double x, double y, struct wlr_surface **psurface,
Client **pc, LayerSurface **pl, double *nx, double *ny) 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 (psurface) *psurface = surface;
if (pc) *pc = c; if (pc) *pc = c;
if (pl) *pl = l; if (pl) *pl = l;
return node;
} }
void void