aboutsummaryrefslogtreecommitdiff
path: root/sway/container.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/container.c')
-rw-r--r--sway/container.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/container.c b/sway/container.c
index 1f93d4dc..231876c5 100644
--- a/sway/container.c
+++ b/sway/container.c
@@ -170,8 +170,8 @@ swayc_t *new_floating_view(wlc_handle handle) {
view->width = geometry->size.w;
view->height = geometry->size.h;
- view->desired_width = -1;
- view->desired_height = -1;
+ view->desired_width = view->width;
+ view->desired_height = view->height;
view->is_floating = true;