summaryrefslogtreecommitdiffstats
path: root/include/sway/tree
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-08-18 19:26:36 -0400
committerLibravatar GitHub <noreply@github.com>2018-08-18 19:26:36 -0400
commitd0a24465d75cc7197ee253e1de9fa961071cd034 (patch)
tree916f9f40b9f587d3cd24a8d7b2185b5c7808cfa4 /include/sway/tree
parentMerge pull request #2484 from ianyfan/con-for-each-child-fix (diff)
parentFix nitpick (diff)
downloadsway-d0a24465d75cc7197ee253e1de9fa961071cd034.tar.gz
sway-d0a24465d75cc7197ee253e1de9fa961071cd034.tar.zst
sway-d0a24465d75cc7197ee253e1de9fa961071cd034.zip
Merge pull request #2466 from RyanDwyer/geometry
Fix geometry
Diffstat (limited to 'include/sway/tree')
-rw-r--r--include/sway/tree/view.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h
index c2225bcb..2747e7c4 100644
--- a/include/sway/tree/view.h
+++ b/include/sway/tree/view.h
@@ -88,6 +88,14 @@ struct sway_view {
88 struct wlr_buffer *saved_buffer; 88 struct wlr_buffer *saved_buffer;
89 int saved_buffer_width, saved_buffer_height; 89 int saved_buffer_width, saved_buffer_height;
90 90
91 // The geometry for whatever the client is committing, regardless of
92 // transaction state. Updated on every commit.
93 struct wlr_box geometry;
94
95 // The "old" geometry during a transaction. Used to damage the old location
96 // when a transaction is applied.
97 struct wlr_box saved_geometry;
98
91 bool destroying; 99 bool destroying;
92 100
93 list_t *executed_criteria; // struct criteria * 101 list_t *executed_criteria; // struct criteria *
@@ -285,8 +293,6 @@ void view_map(struct sway_view *view, struct wlr_surface *wlr_surface);
285 293
286void view_unmap(struct sway_view *view); 294void view_unmap(struct sway_view *view);
287 295
288void view_update_position(struct sway_view *view, double lx, double ly);
289
290void view_update_size(struct sway_view *view, int width, int height); 296void view_update_size(struct sway_view *view, int width, int height);
291 297
292void view_child_init(struct sway_view_child *child, 298void view_child_init(struct sway_view_child *child,