aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/layout.c
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2018-03-29 16:17:55 -0400
committerTony Crisci <tony@dubstepdish.com>2018-03-29 16:40:40 -0400
commitb90099b4b7df8068446c658ab99b58ff83648954 (patch)
treea822ef3605ce98f9d8633c24f6927bb11effbdcc /sway/commands/layout.c
parent83d09cf5945ba10a703dc5cc977a6d2814f0fd64 (diff)
rename container functions
Diffstat (limited to 'sway/commands/layout.c')
-rw-r--r--sway/commands/layout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/commands/layout.c b/sway/commands/layout.c
index 2b193136..e10334e2 100644
--- a/sway/commands/layout.c
+++ b/sway/commands/layout.c
@@ -10,7 +10,7 @@ struct cmd_results *cmd_layout(int argc, char **argv) {
if ((error = checkarg(argc, "layout", EXPECTED_MORE_THAN, 0))) {
return error;
}
- swayc_t *parent = config->handler_context.current_container;
+ struct sway_container *parent = config->handler_context.current_container;
// TODO: floating
/*
@@ -28,7 +28,7 @@ struct cmd_results *cmd_layout(int argc, char **argv) {
if (strcasecmp(argv[0], "default") == 0) {
swayc_change_layout(parent, parent->prev_layout);
if (parent->layout == L_NONE) {
- swayc_t *output = swayc_parent_by_type(parent, C_OUTPUT);
+ struct sway_container *output = sway_container_parent(parent, C_OUTPUT);
swayc_change_layout(parent, default_layout(output));
}
} else {