opt:optimize code struct

This commit is contained in:
DreamMaoMao
2025-11-08 12:39:41 +08:00
parent a42939f0c2
commit c51cf7d6cc

View File

@@ -1966,10 +1966,10 @@ void cleanuplisteners(void) {
wl_list_remove(&request_start_drag.link); wl_list_remove(&request_start_drag.link);
wl_list_remove(&start_drag.link); wl_list_remove(&start_drag.link);
wl_list_remove(&new_session_lock.link); wl_list_remove(&new_session_lock.link);
wl_list_remove(&tearing_new_object.link);
if (drm_lease_manager) { if (drm_lease_manager) {
wl_list_remove(&drm_lease_request.link); wl_list_remove(&drm_lease_request.link);
} }
wl_list_remove(&tearing_new_object.link);
#ifdef XWAYLAND #ifdef XWAYLAND
wl_list_remove(&new_xwayland_surface.link); wl_list_remove(&new_xwayland_surface.link);
wl_list_remove(&xwayland_ready.link); wl_list_remove(&xwayland_ready.link);