view.c: refactor

This commit is contained in:
Johan Malm 2020-05-16 12:04:12 +01:00
parent fdc7b4f1f3
commit 778e4e890b
6 changed files with 83 additions and 84 deletions

2
xdg.c
View file

@ -61,7 +61,7 @@ void xdg_surface_unmap(struct wl_listener *listener, void *data)
{
struct view *view = wl_container_of(listener, view, unmap);
view->mapped = false;
view_focus_next_toplevel(view->server);
view_focus_next_toplevel(view);
}
void xdg_surface_destroy(struct wl_listener *listener, void *data)