From 1e018e72b4d57c8f354b9be9686a7a75797cdcab Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Thu, 6 Apr 2023 22:23:53 +0200 Subject: Delete old damage tracking code The new scene graph abstraction handles this for us. --- include/sway/tree/container.h | 7 ------- include/sway/tree/view.h | 18 ------------------ 2 files changed, 25 deletions(-) (limited to 'include/sway/tree') diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h index 4920e064..4cd4c847 100644 --- a/include/sway/tree/container.h +++ b/include/sway/tree/container.h @@ -125,11 +125,6 @@ struct sway_container { double child_total_width; double child_total_height; - // In most cases this is the same as the content x and y, but if the view - // refuses to resize to the content dimensions then it can be smaller. - // These are in layout coordinates. - double surface_x, surface_y; - // Outputs currently being intersected list_t *outputs; // struct sway_output @@ -181,8 +176,6 @@ bool container_has_ancestor(struct sway_container *container, void container_update_textures_recursive(struct sway_container *con); -void container_damage_whole(struct sway_container *container); - void container_reap_empty(struct sway_container *con); struct sway_container *container_flatten(struct sway_container *container); diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h index 66d6db1c..80097dd3 100644 --- a/include/sway/tree/view.h +++ b/include/sway/tree/view.h @@ -46,10 +46,6 @@ struct sway_view_impl { void (*set_fullscreen)(struct sway_view *view, bool fullscreen); void (*set_resizing)(struct sway_view *view, bool resizing); bool (*wants_floating)(struct sway_view *view); - void (*for_each_surface)(struct sway_view *view, - wlr_surface_iterator_func_t iterator, void *user_data); - void (*for_each_popup_surface)(struct sway_view *view, - wlr_surface_iterator_func_t iterator, void *user_data); bool (*is_transient_for)(struct sway_view *child, struct sway_view *ancestor); void (*close)(struct sway_view *view); @@ -254,20 +250,6 @@ void view_close(struct sway_view *view); void view_close_popups(struct sway_view *view); -void view_damage_from(struct sway_view *view); - -/** - * Iterate all surfaces of a view (toplevels + popups). - */ -void view_for_each_surface(struct sway_view *view, - wlr_surface_iterator_func_t iterator, void *user_data); - -/** - * Iterate all popup surfaces of a view. - */ -void view_for_each_popup_surface(struct sway_view *view, - wlr_surface_iterator_func_t iterator, void *user_data); - // view implementation bool view_init(struct sway_view *view, enum sway_view_type type, -- cgit v1.2.3