diff options
author | emersion <contact@emersion.fr> | 2017-10-25 20:34:40 +0200 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2017-10-25 20:34:40 +0200 |
commit | 7c85709de19e2cb03209b414ce91039d363972ff (patch) | |
tree | 5da0c72de78b165ac99a1819149a08288c69937a /rootston/xwayland.c | |
parent | 70cc87078ee64c465ea8cd032a51ac2e8571be37 (diff) |
Focus last view on close in rootston
Diffstat (limited to 'rootston/xwayland.c')
-rw-r--r-- | rootston/xwayland.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rootston/xwayland.c b/rootston/xwayland.c index 1149b966..8b7c32f4 100644 --- a/rootston/xwayland.c +++ b/rootston/xwayland.c @@ -43,6 +43,7 @@ static void close(struct roots_view *view) { static void handle_destroy(struct wl_listener *listener, void *data) { struct roots_xwayland_surface *roots_surface = wl_container_of(listener, roots_surface, destroy); + view_teardown(roots_surface->view); wl_list_remove(&roots_surface->destroy.link); view_destroy(roots_surface->view); free(roots_surface); @@ -101,6 +102,6 @@ void handle_xwayland_surface(struct wl_listener *listener, void *data) { wlr_list_add(desktop->views, view); if (!surface->override_redirect) { - view_initialize(view); + view_setup(view); } } |