From 500ee09be6732fe6fcc4d6799737fe6150dd66db Mon Sep 17 00:00:00 2001 From: Ryan Walklin Date: Fri, 12 Dec 2025 22:55:24 +1300 Subject: [PATCH] input/seat: remove dead code --- sway/input/seat.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sway/input/seat.c b/sway/input/seat.c index 9fb581687..f89d46dcd 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c @@ -437,11 +437,6 @@ static void toplevel_drag_handle_motion(struct wl_listener *listener, void *data struct wlr_xdg_toplevel_drag_v1 *toplevel_drag = drag->toplevel_drag; struct sway_seat *seat = drag->seat; - if (toplevel_drag == NULL) { - seat->toplevel_drag_container = NULL; - return; - } - // If we have a tracked surface being dragged, move its container. // We track the surface ourselves rather than trusting wlroots' toplevel // pointer, which may not be NULLed promptly during destruction.