summaryrefslogtreecommitdiffstats
path: root/include/sway/tree/view.h
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-08-16 22:41:10 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-08-18 10:39:38 +1000
commit982a2d0c99f4128a7cf2236ca190dd9b4e6d7828 (patch)
tree3106f8f05af455924abfadb2893e0c3599b465c9 /include/sway/tree/view.h
parentAdd view_get_geometry (diff)
downloadsway-982a2d0c99f4128a7cf2236ca190dd9b4e6d7828.tar.gz
sway-982a2d0c99f4128a7cf2236ca190dd9b4e6d7828.tar.zst
sway-982a2d0c99f4128a7cf2236ca190dd9b4e6d7828.zip
Fix geometry
Diffstat (limited to 'include/sway/tree/view.h')
-rw-r--r--include/sway/tree/view.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h
index 1ded601c..0e7f166c 100644
--- a/include/sway/tree/view.h
+++ b/include/sway/tree/view.h
@@ -88,6 +88,7 @@ struct sway_view {
88 88
89 struct wlr_buffer *saved_buffer; 89 struct wlr_buffer *saved_buffer;
90 int saved_buffer_width, saved_buffer_height; 90 int saved_buffer_width, saved_buffer_height;
91 struct wlr_box saved_geometry; // The "old" geometry during a transaction
91 92
92 bool destroying; 93 bool destroying;
93 94
@@ -242,6 +243,8 @@ const char *view_get_shell(struct sway_view *view);
242void view_get_constraints(struct sway_view *view, double *min_width, 243void view_get_constraints(struct sway_view *view, double *min_width,
243 double *max_width, double *min_height, double *max_height); 244 double *max_width, double *min_height, double *max_height);
244 245
246void view_get_geometry(struct sway_view *view, struct wlr_box *box);
247
245uint32_t view_configure(struct sway_view *view, double lx, double ly, int width, 248uint32_t view_configure(struct sway_view *view, double lx, double ly, int width,
246 int height); 249 int height);
247 250