aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexander Orzechowski <orzechowski.alexander@gmail.com>2023-04-06 22:23:53 +0200
committerKirill Primak <vyivel@eclair.cafe>2024-01-18 18:36:54 +0300
commit1e018e72b4d57c8f354b9be9686a7a75797cdcab (patch)
tree46e6c588d30ddfc43793d1980b38b8d53bf9bdd7 /include
parent06ad734e70227ad0527fe11b88ad37e93005ce0c (diff)
Delete old damage tracking code
The new scene graph abstraction handles this for us.
Diffstat (limited to 'include')
-rw-r--r--include/sway/desktop.h13
-rw-r--r--include/sway/output.h29
-rw-r--r--include/sway/tree/container.h7
-rw-r--r--include/sway/tree/view.h18
4 files changed, 0 insertions, 67 deletions
diff --git a/include/sway/desktop.h b/include/sway/desktop.h
deleted file mode 100644
index 7f2f5b3e..00000000
--- a/include/sway/desktop.h
+++ /dev/null
@@ -1,13 +0,0 @@
-#include <wlr/types/wlr_compositor.h>
-
-struct sway_container;
-struct sway_view;
-
-void desktop_damage_surface(struct wlr_surface *surface, double lx, double ly,
- bool whole);
-
-void desktop_damage_whole_container(struct sway_container *con);
-
-void desktop_damage_box(struct wlr_box *box);
-
-void desktop_damage_view(struct sway_view *view);
diff --git a/include/sway/output.h b/include/sway/output.h
index e2023306..30595f54 100644
--- a/include/sway/output.h
+++ b/include/sway/output.h
@@ -45,8 +45,6 @@ struct sway_output {
struct wlr_box usable_area;
- struct wlr_damage_ring damage_ring;
-
int lx, ly; // layout coords
int width, height; // transformed buffer size
enum wl_output_subpixel detected_subpixel;
@@ -99,19 +97,6 @@ typedef void (*sway_surface_iterator_func_t)(struct sway_output *output,
struct sway_view *view, struct wlr_surface *surface, struct wlr_box *box,
void *user_data);
-void output_damage_whole(struct sway_output *output);
-
-void output_damage_surface(struct sway_output *output, double ox, double oy,
- struct wlr_surface *surface, bool whole);
-
-void output_damage_from_view(struct sway_output *output,
- struct sway_view *view);
-
-void output_damage_box(struct sway_output *output, struct wlr_box *box);
-
-void output_damage_whole_container(struct sway_output *output,
- struct sway_container *con);
-
bool output_match_name_or_id(struct sway_output *output,
const char *name_or_id);
@@ -129,18 +114,6 @@ void output_disable(struct sway_output *output);
struct sway_workspace *output_get_active_workspace(struct sway_output *output);
-void output_surface_for_each_surface(struct sway_output *output,
- struct wlr_surface *surface, double ox, double oy,
- sway_surface_iterator_func_t iterator, void *user_data);
-
-void output_view_for_each_surface(struct sway_output *output,
- struct sway_view *view, sway_surface_iterator_func_t iterator,
- void *user_data);
-
-void output_view_for_each_popup_surface(struct sway_output *output,
- struct sway_view *view, sway_surface_iterator_func_t iterator,
- void *user_data);
-
void output_for_each_workspace(struct sway_output *output,
void (*f)(struct sway_workspace *ws, void *data), void *data);
@@ -158,8 +131,6 @@ void output_get_box(struct sway_output *output, struct wlr_box *box);
enum sway_container_layout output_get_default_layout(
struct sway_output *output);
-void scale_box(struct wlr_box *box, float scale);
-
enum wlr_direction opposite_direction(enum wlr_direction d);
void handle_output_layout_change(struct wl_listener *listener, void *data);
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,