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 /sway/desktop/xdg_shell.c | |
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 'sway/desktop/xdg_shell.c')
-rw-r--r-- | sway/desktop/xdg_shell.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/sway/desktop/xdg_shell.c b/sway/desktop/xdg_shell.c index 95b5cb9d..48b7b4c7 100644 --- a/sway/desktop/xdg_shell.c +++ b/sway/desktop/xdg_shell.c | |||
@@ -214,24 +214,6 @@ static bool wants_floating(struct sway_view *view) { | |||
214 | || toplevel->parent; | 214 | || toplevel->parent; |
215 | } | 215 | } |
216 | 216 | ||
217 | static void for_each_surface(struct sway_view *view, | ||
218 | wlr_surface_iterator_func_t iterator, void *user_data) { | ||
219 | if (xdg_shell_view_from_view(view) == NULL) { | ||
220 | return; | ||
221 | } | ||
222 | wlr_xdg_surface_for_each_surface(view->wlr_xdg_toplevel->base, iterator, | ||
223 | user_data); | ||
224 | } | ||
225 | |||
226 | static void for_each_popup_surface(struct sway_view *view, | ||
227 | wlr_surface_iterator_func_t iterator, void *user_data) { | ||
228 | if (xdg_shell_view_from_view(view) == NULL) { | ||
229 | return; | ||
230 | } | ||
231 | wlr_xdg_surface_for_each_popup_surface(view->wlr_xdg_toplevel->base, | ||
232 | iterator, user_data); | ||
233 | } | ||
234 | |||
235 | static bool is_transient_for(struct sway_view *child, | 217 | static bool is_transient_for(struct sway_view *child, |
236 | struct sway_view *ancestor) { | 218 | struct sway_view *ancestor) { |
237 | if (xdg_shell_view_from_view(child) == NULL) { | 219 | if (xdg_shell_view_from_view(child) == NULL) { |
@@ -279,8 +261,6 @@ static const struct sway_view_impl view_impl = { | |||
279 | .set_fullscreen = set_fullscreen, | 261 | .set_fullscreen = set_fullscreen, |
280 | .set_resizing = set_resizing, | 262 | .set_resizing = set_resizing, |
281 | .wants_floating = wants_floating, | 263 | .wants_floating = wants_floating, |
282 | .for_each_surface = for_each_surface, | ||
283 | .for_each_popup_surface = for_each_popup_surface, | ||
284 | .is_transient_for = is_transient_for, | 264 | .is_transient_for = is_transient_for, |
285 | .close = _close, | 265 | .close = _close, |
286 | .close_popups = close_popups, | 266 | .close_popups = close_popups, |