diff options
author | Calvin Lee <cyrus296@gmail.com> | 2017-04-02 14:38:33 -0600 |
---|---|---|
committer | Calvin Lee <cyrus296@gmail.com> | 2017-04-03 11:48:37 -0600 |
commit | 2445d279604d7be38c00db60ffde4279a3c75459 (patch) | |
tree | 030844d9fb13be7814dd760a6ffedbec8f5264cd /sway/container.c | |
parent | ab7570d311d65ff03fd14627ec3157fa37995ced (diff) |
Impliment i3-style marks
This commit adds three commands to sway: `show_marks`, `mark` and
`unmark`. Marks are displayed right-aligned in the window border as i3
does. Marks may be found using criteria.
Fixes #1007
Diffstat (limited to 'sway/container.c')
-rw-r--r-- | sway/container.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/container.c b/sway/container.c index 707aa4d8..08aa77a8 100644 --- a/sway/container.c +++ b/sway/container.c @@ -61,6 +61,10 @@ static void free_swayc(swayc_t *cont) { } list_free(cont->floating); } + if (cont->marks) { + list_foreach(cont->marks, free); + list_free(cont->marks); + } if (cont->parent) { remove_child(cont); } |