aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/tree/view.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sway/tree/view.h')
-rw-r--r--include/sway/tree/view.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h
index ab2dc8e4..53c5d34e 100644
--- a/include/sway/tree/view.h
+++ b/include/sway/tree/view.h
@@ -55,6 +55,13 @@ struct sway_view_impl {
55 void (*destroy)(struct sway_view *view); 55 void (*destroy)(struct sway_view *view);
56}; 56};
57 57
58struct sway_saved_buffer {
59 struct wlr_client_buffer *buffer;
60 int x, y;
61 int width, height;
62 struct wl_list link; // sway_view::saved_buffers
63};
64
58struct sway_view { 65struct sway_view {
59 enum sway_view_type type; 66 enum sway_view_type type;
60 const struct sway_view_impl *impl; 67 const struct sway_view_impl *impl;
@@ -65,9 +72,6 @@ struct sway_view {
65 72
66 pid_t pid; 73 pid_t pid;
67 74
68 double saved_x, saved_y;
69 int saved_width, saved_height;
70
71 // The size the view would want to be if it weren't tiled. 75 // The size the view would want to be if it weren't tiled.
72 // Used when changing a view from tiled to floating. 76 // Used when changing a view from tiled to floating.
73 int natural_width, natural_height; 77 int natural_width, natural_height;
@@ -80,8 +84,7 @@ struct sway_view {
80 bool allow_request_urgent; 84 bool allow_request_urgent;
81 struct wl_event_source *urgent_timer; 85 struct wl_event_source *urgent_timer;
82 86
83 struct wlr_client_buffer *saved_buffer; 87 struct wl_list saved_buffers; // sway_saved_buffer::link
84 int saved_buffer_width, saved_buffer_height;
85 88
86 // The geometry for whatever the client is committing, regardless of 89 // The geometry for whatever the client is committing, regardless of
87 // transaction state. Updated on every commit. 90 // transaction state. Updated on every commit.