diff options
author | Alexander Orzechowski <orzechowski.alexander@gmail.com> | 2023-04-06 22:23:53 +0200 |
---|---|---|
committer | Kirill Primak <vyivel@eclair.cafe> | 2024-01-18 18:36:54 +0300 |
commit | 1e018e72b4d57c8f354b9be9686a7a75797cdcab (patch) | |
tree | 46e6c588d30ddfc43793d1980b38b8d53bf9bdd7 /include/sway/output.h | |
parent | scene_graph: Port view saved buffers (diff) | |
download | sway-1e018e72b4d57c8f354b9be9686a7a75797cdcab.tar.gz sway-1e018e72b4d57c8f354b9be9686a7a75797cdcab.tar.zst sway-1e018e72b4d57c8f354b9be9686a7a75797cdcab.zip |
Delete old damage tracking code
The new scene graph abstraction handles this for us.
Diffstat (limited to 'include/sway/output.h')
-rw-r--r-- | include/sway/output.h | 29 |
1 files changed, 0 insertions, 29 deletions
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 { | |||
45 | 45 | ||
46 | struct wlr_box usable_area; | 46 | struct wlr_box usable_area; |
47 | 47 | ||
48 | struct wlr_damage_ring damage_ring; | ||
49 | |||
50 | int lx, ly; // layout coords | 48 | int lx, ly; // layout coords |
51 | int width, height; // transformed buffer size | 49 | int width, height; // transformed buffer size |
52 | enum wl_output_subpixel detected_subpixel; | 50 | enum wl_output_subpixel detected_subpixel; |
@@ -99,19 +97,6 @@ typedef void (*sway_surface_iterator_func_t)(struct sway_output *output, | |||
99 | struct sway_view *view, struct wlr_surface *surface, struct wlr_box *box, | 97 | struct sway_view *view, struct wlr_surface *surface, struct wlr_box *box, |
100 | void *user_data); | 98 | void *user_data); |
101 | 99 | ||
102 | void output_damage_whole(struct sway_output *output); | ||
103 | |||
104 | void output_damage_surface(struct sway_output *output, double ox, double oy, | ||
105 | struct wlr_surface *surface, bool whole); | ||
106 | |||
107 | void output_damage_from_view(struct sway_output *output, | ||
108 | struct sway_view *view); | ||
109 | |||
110 | void output_damage_box(struct sway_output *output, struct wlr_box *box); | ||
111 | |||
112 | void output_damage_whole_container(struct sway_output *output, | ||
113 | struct sway_container *con); | ||
114 | |||
115 | bool output_match_name_or_id(struct sway_output *output, | 100 | bool output_match_name_or_id(struct sway_output *output, |
116 | const char *name_or_id); | 101 | const char *name_or_id); |
117 | 102 | ||
@@ -129,18 +114,6 @@ void output_disable(struct sway_output *output); | |||
129 | 114 | ||
130 | struct sway_workspace *output_get_active_workspace(struct sway_output *output); | 115 | struct sway_workspace *output_get_active_workspace(struct sway_output *output); |
131 | 116 | ||
132 | void output_surface_for_each_surface(struct sway_output *output, | ||
133 | struct wlr_surface *surface, double ox, double oy, | ||
134 | sway_surface_iterator_func_t iterator, void *user_data); | ||
135 | |||
136 | void output_view_for_each_surface(struct sway_output *output, | ||
137 | struct sway_view *view, sway_surface_iterator_func_t iterator, | ||
138 | void *user_data); | ||
139 | |||
140 | void output_view_for_each_popup_surface(struct sway_output *output, | ||
141 | struct sway_view *view, sway_surface_iterator_func_t iterator, | ||
142 | void *user_data); | ||
143 | |||
144 | void output_for_each_workspace(struct sway_output *output, | 117 | void output_for_each_workspace(struct sway_output *output, |
145 | void (*f)(struct sway_workspace *ws, void *data), void *data); | 118 | void (*f)(struct sway_workspace *ws, void *data), void *data); |
146 | 119 | ||
@@ -158,8 +131,6 @@ void output_get_box(struct sway_output *output, struct wlr_box *box); | |||
158 | enum sway_container_layout output_get_default_layout( | 131 | enum sway_container_layout output_get_default_layout( |
159 | struct sway_output *output); | 132 | struct sway_output *output); |
160 | 133 | ||
161 | void scale_box(struct wlr_box *box, float scale); | ||
162 | |||
163 | enum wlr_direction opposite_direction(enum wlr_direction d); | 134 | enum wlr_direction opposite_direction(enum wlr_direction d); |
164 | 135 | ||
165 | void handle_output_layout_change(struct wl_listener *listener, void *data); | 136 | void handle_output_layout_change(struct wl_listener *listener, void *data); |