From 76cd17c833f6031cdf64c16b55eede3b99708d2f Mon Sep 17 00:00:00 2001 From: Kirill Primak Date: Tue, 8 Oct 2024 19:18:38 +0300 Subject: [PATCH] subcompositor: drop unused subsurface state --- include/wlr/types/wlr_subcompositor.h | 4 ---- types/wlr_subcompositor.c | 3 --- 2 files changed, 7 deletions(-) diff --git a/include/wlr/types/wlr_subcompositor.h b/include/wlr/types/wlr_subcompositor.h index bd3899b8..61a2cccc 100644 --- a/include/wlr/types/wlr_subcompositor.h +++ b/include/wlr/types/wlr_subcompositor.h @@ -53,10 +53,6 @@ struct wlr_subsurface { // private state struct wlr_surface_synced parent_synced; - - struct { - int32_t x, y; - } previous; }; struct wlr_subcompositor { diff --git a/types/wlr_subcompositor.c b/types/wlr_subcompositor.c index 771b9873..f0d0827b 100644 --- a/types/wlr_subcompositor.c +++ b/types/wlr_subcompositor.c @@ -289,9 +289,6 @@ void subsurface_handle_parent_commit(struct wlr_subsurface *subsurface) { subsurface); subsurface_consider_map(subsurface); } - - subsurface->previous.x = subsurface->current.x; - subsurface->previous.y = subsurface->current.y; } struct wlr_subsurface *wlr_subsurface_try_from_wlr_surface(struct wlr_surface *surface) {