diff options
author | wil <william.barsse@gmail.com> | 2017-01-01 19:53:53 +0100 |
---|---|---|
committer | wil <william.barsse@gmail.com> | 2017-01-01 19:53:53 +0100 |
commit | a62048f15d9381e3040bd45965233e59a041eab7 (patch) | |
tree | 52e898bed50efcefe3d526db696d16f8888bc2f0 /sway/commands/layout.c | |
parent | 15745abf0cb4948fcc750a9e78139d3c02e1c1f0 (diff) |
changed "layout promote" command to "move first"
This is more consistent with other Sway semantics.
Diffstat (limited to 'sway/commands/layout.c')
-rw-r--r-- | sway/commands/layout.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/sway/commands/layout.c b/sway/commands/layout.c index d908b95c..2da65765 100644 --- a/sway/commands/layout.c +++ b/sway/commands/layout.c @@ -117,18 +117,6 @@ struct cmd_results *cmd_layout(int argc, char **argv) { "Must be one of <prev|next>."); } swayc_change_layout(parent, layout); - } else if (strcasecmp(argv[0], "promote") == 0) { - // swap first child in auto layout with currently focused child - swayc_t *container = get_focused_view(swayc_active_workspace()); - swayc_t *parent = container->parent; - if (is_auto_layout(parent->layout)) { - int focused_idx = index_child(container); - swayc_t *first = parent->children->items[0]; - if (focused_idx > 0) { - list_swap(parent->children, 0, focused_idx); - swap_geometry(first, container); - } - } } } |