mirror of
https://github.com/swaywm/sway.git
synced 2025-11-14 06:59:47 -05:00
seat focus on button press
This commit is contained in:
parent
0fdecb4d3a
commit
21626e8153
7 changed files with 90 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue