Close popups when changing focus

Also reverts the send frame done changes from the previous commit.
This commit is contained in:
Ryan Dwyer 2018-07-31 19:58:34 +10:00
parent de86d65627
commit 7a59508da4
6 changed files with 44 additions and 31 deletions

View file

@ -302,6 +302,12 @@ void view_close(struct sway_view *view) {
}
}
void view_close_popups(struct sway_view *view) {
if (view->impl->close_popups) {
view->impl->close_popups(view);
}
}
void view_damage_from(struct sway_view *view) {
for (int i = 0; i < root_container.children->length; ++i) {
struct sway_container *cont = root_container.children->items[i];