Fix some warnings from clang-tidy

Notably this fixes a possible null pointer dereference in warp_cursor()
when output_nearest_to_cursor() returns null.
This commit is contained in:
tokyo4j 2025-07-28 13:54:10 +09:00 committed by Consolatis
parent b3b6715cdf
commit bdaf85eda1
3 changed files with 6 additions and 9 deletions

View file

@ -1054,9 +1054,6 @@ static void
handle_xdg_toplevel_icon_set_icon(struct wl_listener *listener, void *data)
{
struct wlr_xdg_toplevel_icon_manager_v1_set_icon_event *event = data;
struct server *server =
wl_container_of(listener, server, xdg_toplevel_icon_set_icon);
struct wlr_xdg_surface *xdg_surface = event->toplevel->base;
struct view *view = xdg_surface->data;
assert(view);