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

3
xwl.c
View file

@ -49,8 +49,7 @@ void xwl_surface_unmap(struct wl_listener *listener, void *data)
{
struct view *view = wl_container_of(listener, view, unmap);
view->mapped = false;
if (is_toplevel(view))
view_focus_next_toplevel(view->server);
view_focus_next_toplevel(view);
}
void xwl_surface_destroy(struct wl_listener *listener, void *data)