Merge pull request #670 from Ongy/xwayland_unmanaged

add xwayland unmanaged tests to support dmenu
This commit is contained in:
emersion 2018-02-27 09:47:23 +01:00 committed by GitHub
commit c2ba1869ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 60 additions and 2 deletions

View file

@ -445,13 +445,17 @@ void view_init(struct roots_view *view, struct roots_desktop *desktop) {
view_damage_whole(view);
}
void view_setup(struct roots_view *view) {
void view_initial_focus(struct roots_view *view) {
struct roots_input *input = view->desktop->server->input;
// TODO what seat gets focus? the one with the last input event?
struct roots_seat *seat;
wl_list_for_each(seat, &input->seats, link) {
roots_seat_set_focus(seat, view);
}
}
void view_setup(struct roots_view *view) {
view_initial_focus(view);
view_center(view);
view_update_output(view, NULL);