aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2018-08-16 22:41:10 +1000
committerFurkan Sahin <furkan-dev@proton.me>2018-08-16 22:41:10 +1000
commit739ffd0b050f383521678e3ac8c5d62d59b6a6c1 (patch)
tree3106f8f05af455924abfadb2893e0c3599b465c9 /include
parentd42c5ca310f975f9c0723b2d6b79fbf6936c5809 (diff)
Fix geometry
Diffstat (limited to 'include')
-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 {
struct wlr_buffer *saved_buffer;
int saved_buffer_width, saved_buffer_height;
+ struct wlr_box saved_geometry; // The "old" geometry during a transaction
bool destroying;
@@ -242,6 +243,8 @@ const char *view_get_shell(struct sway_view *view);
void view_get_constraints(struct sway_view *view, double *min_width,
double *max_width, double *min_height, double *max_height);
+void view_get_geometry(struct sway_view *view, struct wlr_box *box);
+
uint32_t view_configure(struct sway_view *view, double lx, double ly, int width,
int height);