aboutsummaryrefslogtreecommitdiff
path: root/sway/handlers.c
diff options
context:
space:
mode:
authorDenis Doria <denisdoria@gmail.com>2016-05-31 14:59:33 +0200
committerDenis Doria <denisdoria@gmail.com>2016-05-31 14:59:33 +0200
commitf1d5b89d3eabf0af267ed4a385079d616a82d2aa (patch)
treedc5017d0adbd1168c936d66faf34b82c2eb010b3 /sway/handlers.c
parent9d7d73df7f7888a3ea8420662fa5aa2ef6e3bd82 (diff)
Initial work for floating view with sane values
Diffstat (limited to 'sway/handlers.c')
-rw-r--r--sway/handlers.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/handlers.c b/sway/handlers.c
index 931e1340..f8dd9f4d 100644
--- a/sway/handlers.c
+++ b/sway/handlers.c
@@ -350,6 +350,7 @@ static void handle_view_geometry_request(wlc_handle handle, const struct wlc_geo
view->desired_height = geometry->size.h;
if (view->is_floating) {
+ floating_view_sane_size(view);
view->width = view->desired_width;
view->height = view->desired_height;
view->x = geometry->origin.x;