aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/seat.c
diff options
context:
space:
mode:
authorLibravatar Tony Crisci <tony@dubstepdish.com>2018-04-03 12:25:19 -0400
committerLibravatar Tony Crisci <tony@dubstepdish.com>2018-04-03 12:25:19 -0400
commitb4c5f79725142c78a398a22981392d645bc9d2e9 (patch)
treec6f836b1179c018c55b6dfead9cbca4e2fa97876 /sway/input/seat.c
parentrename _container_destroy to container_finish (diff)
downloadsway-b4c5f79725142c78a398a22981392d645bc9d2e9.tar.gz
sway-b4c5f79725142c78a398a22981392d645bc9d2e9.tar.zst
sway-b4c5f79725142c78a398a22981392d645bc9d2e9.zip
move view and workspace destructors to container.c
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r--sway/input/seat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c
index c41f7b2e..d752acb8 100644
--- a/sway/input/seat.c
+++ b/sway/input/seat.c
@@ -381,7 +381,8 @@ void seat_set_focus_warp(struct sway_seat *seat,
381 if (last_ws) { 381 if (last_ws) {
382 ipc_event_workspace(last_ws, container, "focus"); 382 ipc_event_workspace(last_ws, container, "focus");
383 if (last_ws->children->length == 0) { 383 if (last_ws->children->length == 0) {
384 container_workspace_destroy(last_ws); 384 output_damage_whole(last_ws->parent->sway_output);
385 container_destroy(last_ws);
385 } 386 }
386 } 387 }
387 struct sway_container *last_output = last_focus; 388 struct sway_container *last_output = last_focus;