mirror of
https://github.com/swaywm/sway.git
synced 2024-11-11 21:14:10 +01:00
Merge pull request #2194 from RyanDwyer/fix-incorrect-render
Don't return pending children in seat_get_active_current_child
This commit is contained in:
commit
8cc26130a6
@ -832,12 +832,12 @@ struct sway_container *seat_get_active_child(struct sway_seat *seat,
|
|||||||
|
|
||||||
struct sway_container *seat_get_active_current_child(struct sway_seat *seat,
|
struct sway_container *seat_get_active_current_child(struct sway_seat *seat,
|
||||||
struct sway_container *container) {
|
struct sway_container *container) {
|
||||||
struct sway_container *child = seat_get_active_child(seat, container);
|
struct sway_seat_container *current = NULL;
|
||||||
if (child) {
|
wl_list_for_each(current, &seat->focus_stack, link) {
|
||||||
return child;
|
if (current->container->current.parent == container &&
|
||||||
|
current->container->current.layout != L_FLOATING) {
|
||||||
|
return current->container;
|
||||||
}
|
}
|
||||||
if (container->current.children->length == 1) {
|
|
||||||
return container->current.children->items[0];
|
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user