aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexander Orzechowski <alex@ozal.ski>2023-04-27 10:25:40 +0200
committerKirill Primak <vyivel@eclair.cafe>2024-01-18 18:36:54 +0300
commit06ad734e70227ad0527fe11b88ad37e93005ce0c (patch)
tree5a5e2606242e3d229f4979d2b7c5352a139730b0 /include
parented2724bd6c83ad3fdc2010b3a1e2f5967f0e8b38 (diff)
scene_graph: Port view saved buffers
Diffstat (limited to 'include')
-rw-r--r--include/sway/tree/view.h18
1 files changed, 3 insertions, 15 deletions
diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h
index 8493958e..66d6db1c 100644
--- a/include/sway/tree/view.h
+++ b/include/sway/tree/view.h
@@ -57,21 +57,13 @@ struct sway_view_impl {
void (*destroy)(struct sway_view *view);
};
-struct sway_saved_buffer {
- struct wlr_client_buffer *buffer;
- int x, y;
- int width, height;
- enum wl_output_transform transform;
- struct wlr_fbox source_box;
- struct wl_list link; // sway_view::saved_buffers
-};
-
struct sway_view {
enum sway_view_type type;
const struct sway_view_impl *impl;
struct wlr_scene_tree *scene_tree;
struct wlr_scene_tree *content_tree;
+ struct wlr_scene_tree *saved_surface_tree;
struct sway_container *container; // NULL if unmapped and transactions finished
struct wlr_surface *surface; // NULL for unmapped views
@@ -92,16 +84,10 @@ struct sway_view {
bool allow_request_urgent;
struct wl_event_source *urgent_timer;
- struct wl_list saved_buffers; // sway_saved_buffer::link
-
// The geometry for whatever the client is committing, regardless of
// transaction state. Updated on every commit.
struct wlr_box geometry;
- // The "old" geometry during a transaction. Used to damage the old location
- // when a transaction is applied.
- struct wlr_box saved_geometry;
-
struct wlr_foreign_toplevel_handle_v1 *foreign_toplevel;
struct wl_listener foreign_activate_request;
struct wl_listener foreign_fullscreen_request;
@@ -347,4 +333,6 @@ bool view_is_transient_for(struct sway_view *child, struct sway_view *ancestor);
void view_assign_ctx(struct sway_view *view, struct launcher_ctx *ctx);
+void view_send_frame_done(struct sway_view *view);
+
#endif