Merge pull request #2379 from emersion/xwayland-unmanaged

Don't give focus if xwayland window has a type hint
This commit is contained in:
Drew DeVault 2018-07-29 13:49:58 -04:00 committed by GitHub
commit ca8f177e14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,11 +69,13 @@ static void unmanaged_handle_map(struct wl_listener *listener, void *data) {
surface->ly = xsurface->y;
desktop_damage_surface(xsurface->surface, surface->lx, surface->ly, true);
if (wlr_xwayland_or_surface_wants_focus(xsurface)) {
struct sway_seat *seat = input_manager_current_seat(input_manager);
struct wlr_xwayland *xwayland =
seat->input->server->xwayland.wlr_xwayland;
wlr_xwayland_set_seat(xwayland, seat->wlr_seat);
seat_set_focus_surface(seat, xsurface->surface, false);
}
}
static void unmanaged_handle_unmap(struct wl_listener *listener, void *data) {