seat focus on button press

This commit is contained in:
Tony Crisci 2017-12-10 11:11:47 -05:00
parent 0fdecb4d3a
commit 21626e8153
7 changed files with 90 additions and 4 deletions

View file

@ -40,6 +40,9 @@ static swayc_t *new_swayc(enum swayc_types type) {
if (type != C_VIEW) {
c->children = create_list();
}
wl_signal_init(&c->events.destroy);
return c;
}
@ -119,6 +122,9 @@ static void free_swayc(swayc_t *cont) {
if (!sway_assert(cont, "free_swayc passed NULL")) {
return;
}
wl_signal_emit(&cont->events.destroy, cont);
if (cont->children) {
// remove children until there are no more, free_swayc calls
// remove_child, which removes child from this container