Fixed 'unused variable' compiler warning.

This commit is contained in:
pino-desktop 2023-01-08 17:37:24 +01:00 committed by Leonardo Hernández Hernández
parent 7f9a212476
commit f8373ccf25
No known key found for this signature in database
GPG key ID: E538897EE11B9624

2
dwl.c
View file

@ -1526,7 +1526,6 @@ mapnotify(struct wl_listener *listener, void *data)
}
c->scene->node.data = c->scene_surface->node.data = c;
#ifdef XWAYLAND
/* Handle unmanaged clients first so we can return prior create borders */
if (client_is_unmanaged(c)) {
client_get_geometry(c, &c->geom);
@ -1540,7 +1539,6 @@ mapnotify(struct wl_listener *listener, void *data)
}
goto unset_fullscreen;
}
#endif
for (i = 0; i < 4; i++) {
c->border[i] = wlr_scene_rect_create(c->scene, 0, 0, bordercolor);