summaryrefslogtreecommitdiffstats
path: root/sway/scratchpad.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/scratchpad.c')
-rw-r--r--sway/scratchpad.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sway/scratchpad.c b/sway/scratchpad.c
index 64636c77..181d9b3b 100644
--- a/sway/scratchpad.c
+++ b/sway/scratchpad.c
@@ -72,11 +72,7 @@ static void scratchpad_show(struct sway_container *con) {
72 if (!wlr_box_contains_point(&workspace_box, center_lx, center_ly)) { 72 if (!wlr_box_contains_point(&workspace_box, center_lx, center_ly)) {
73 // Maybe resize it 73 // Maybe resize it
74 if (con->width > ws->width || con->height > ws->height) { 74 if (con->width > ws->width || con->height > ws->height) {
75 // TODO: Do this properly once we can float C_CONTAINERs 75 container_init_floating(con);
76 if (con->type == C_VIEW) {
77 view_init_floating(con->sway_view);
78 arrange_windows(con);
79 }
80 } 76 }
81 77
82 // Center it 78 // Center it
@@ -85,6 +81,7 @@ static void scratchpad_show(struct sway_container *con) {
85 container_floating_move_to(con, new_lx, new_ly); 81 container_floating_move_to(con, new_lx, new_ly);
86 } 82 }
87 83
84 arrange_windows(ws);
88 seat_set_focus(seat, con); 85 seat_set_focus(seat, con);
89 86
90 container_set_dirty(con->parent); 87 container_set_dirty(con->parent);