mirror of
https://github.com/swaywm/sway.git
synced 2025-11-11 13:29:51 -05:00
Fixes to floating and umanaged views
This commit is contained in:
parent
da77dc45a9
commit
47ec999e71
5 changed files with 99 additions and 14 deletions
|
|
@ -73,11 +73,12 @@ swayc_t *remove_child(swayc_t *parent, swayc_t *child) {
|
|||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
for (i = 0; i < parent->children->length; ++i) {
|
||||
if (parent->children->items[i] == child) {
|
||||
list_del(parent->children, i);
|
||||
break;
|
||||
} else {
|
||||
for (i = 0; i < parent->children->length; ++i) {
|
||||
if (parent->children->items[i] == child) {
|
||||
list_del(parent->children, i);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (parent->focused == child) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue