aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLuminarys <kizunanohikari@gmail.com>2015-08-20 21:37:59 -0500
committerLuminarys <kizunanohikari@gmail.com>2015-08-20 21:37:59 -0500
commitf589731f2912660bab6fdffc14ddcdbac3edd41c (patch)
treecda490ea65181959c777e623cb0f20f055f1d90a /include
parentc9935507f2bc8e2471f6642e99a2fb52ab1310f0 (diff)
downloadsway-f589731f2912660bab6fdffc14ddcdbac3edd41c.tar.xz
Rewrite of resize command to make it more sane
Diffstat (limited to 'include')
-rw-r--r--include/container.h4
-rw-r--r--include/layout.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/include/container.h b/include/container.h
index bd92058d..d3026011 100644
--- a/include/container.h
+++ b/include/container.h
@@ -33,12 +33,12 @@ struct sway_container {
enum swayc_layouts layout;
// Not including borders or margins
- int width, height;
+ double width, height;
// Used for setting floating geometry
int desired_width, desired_height;
- int x, y;
+ double x, y;
bool visible;
bool is_floating;
diff --git a/include/layout.h b/include/layout.h
index 4dff81b7..566e3246 100644
--- a/include/layout.h
+++ b/include/layout.h
@@ -29,6 +29,6 @@ swayc_t *get_focused_container(swayc_t *parent);
swayc_t *get_swayc_for_handle(wlc_handle handle, swayc_t *parent);
swayc_t *get_swayc_in_direction(swayc_t *container, enum movement_direction dir);
-void recursive_resize(swayc_t *container, double amount, enum movement_direction dir);
+void recursive_resize(swayc_t *container, double amount, enum wlc_resize_edge edge);
#endif