aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/output.h
diff options
context:
space:
mode:
authorLibravatar Alexander Orzechowski <orzechowski.alexander@gmail.com>2023-04-06 22:23:53 +0200
committerLibravatar Kirill Primak <vyivel@eclair.cafe>2024-01-18 18:36:54 +0300
commit1e018e72b4d57c8f354b9be9686a7a75797cdcab (patch)
tree46e6c588d30ddfc43793d1980b38b8d53bf9bdd7 /include/sway/output.h
parentscene_graph: Port view saved buffers (diff)
downloadsway-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.h29
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
102void output_damage_whole(struct sway_output *output);
103
104void output_damage_surface(struct sway_output *output, double ox, double oy,
105 struct wlr_surface *surface, bool whole);
106
107void output_damage_from_view(struct sway_output *output,
108 struct sway_view *view);
109
110void output_damage_box(struct sway_output *output, struct wlr_box *box);
111
112void output_damage_whole_container(struct sway_output *output,
113 struct sway_container *con);
114
115bool output_match_name_or_id(struct sway_output *output, 100bool 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
130struct sway_workspace *output_get_active_workspace(struct sway_output *output); 115struct sway_workspace *output_get_active_workspace(struct sway_output *output);
131 116
132void 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
136void 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
140void 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
144void output_for_each_workspace(struct sway_output *output, 117void 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);
158enum sway_container_layout output_get_default_layout( 131enum sway_container_layout output_get_default_layout(
159 struct sway_output *output); 132 struct sway_output *output);
160 133
161void scale_box(struct wlr_box *box, float scale);
162
163enum wlr_direction opposite_direction(enum wlr_direction d); 134enum wlr_direction opposite_direction(enum wlr_direction d);
164 135
165void handle_output_layout_change(struct wl_listener *listener, void *data); 136void handle_output_layout_change(struct wl_listener *listener, void *data);