mirror of
https://github.com/swaywm/sway.git
synced 2024-11-13 14:04:11 +01:00
Don't give focus if xwayland window has a type hint
This commit is contained in:
parent
8fcf0505d0
commit
9a7e436fad
@ -69,11 +69,13 @@ static void unmanaged_handle_map(struct wl_listener *listener, void *data) {
|
|||||||
surface->ly = xsurface->y;
|
surface->ly = xsurface->y;
|
||||||
desktop_damage_surface(xsurface->surface, surface->lx, surface->ly, true);
|
desktop_damage_surface(xsurface->surface, surface->lx, surface->ly, true);
|
||||||
|
|
||||||
struct sway_seat *seat = input_manager_current_seat(input_manager);
|
if (wlr_xwayland_or_surface_wants_focus(xsurface)) {
|
||||||
struct wlr_xwayland *xwayland =
|
struct sway_seat *seat = input_manager_current_seat(input_manager);
|
||||||
seat->input->server->xwayland.wlr_xwayland;
|
struct wlr_xwayland *xwayland =
|
||||||
wlr_xwayland_set_seat(xwayland, seat->wlr_seat);
|
seat->input->server->xwayland.wlr_xwayland;
|
||||||
seat_set_focus_surface(seat, xsurface->surface, false);
|
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) {
|
static void unmanaged_handle_unmap(struct wl_listener *listener, void *data) {
|
||||||
|
Loading…
Reference in New Issue
Block a user