aboutsummaryrefslogtreecommitdiff
path: root/rootston/desktop.c
diff options
context:
space:
mode:
authorBrian Ashworth <RedSoxFan@users.noreply.github.com>2018-07-29 22:03:53 -0400
committerGitHub <noreply@github.com>2018-07-29 22:03:53 -0400
commita3c33e93b80ffd3bd9f9c8dd9af9032ca578b726 (patch)
treef38b2d3a5c2f2b60804fdf00a05c238ea95bf20b /rootston/desktop.c
parent1c7957cdc1b9bc395510ab7decc1394c1bcd1206 (diff)
parent2e6eb097b6e23b8923bbfc68b1843d5ccde1955b (diff)
Merge pull request #1167 from ammen99/master
rootston: focus newly-created surfaces
Diffstat (limited to 'rootston/desktop.c')
-rw-r--r--rootston/desktop.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/rootston/desktop.c b/rootston/desktop.c
index 5277dcc7..17bf7ec4 100644
--- a/rootston/desktop.c
+++ b/rootston/desktop.c
@@ -423,6 +423,7 @@ struct roots_subsurface *subsurface_create(struct roots_view *view,
view_child_init(&subsurface->view_child, view, wlr_subsurface->surface);
subsurface->destroy.notify = subsurface_handle_destroy;
wl_signal_add(&wlr_subsurface->events.destroy, &subsurface->destroy);
+ input_update_cursor_focus(view->desktop->server->input);
return subsurface;
}
@@ -468,6 +469,7 @@ void view_map(struct roots_view *view, struct wlr_surface *surface) {
wl_list_insert(&view->desktop->views, &view->link);
view_damage_whole(view);
+ input_update_cursor_focus(view->desktop->server->input);
}
void view_unmap(struct roots_view *view) {