mirror of
https://github.com/swaywm/sway.git
synced 2025-11-10 13:29:51 -05:00
Give windows pointer focus immediately when they are switched to
Fixes #2401 (aka #2558) Previously, when switching windows, pointer focus was not changed until the pointer was moved. This makes the pointer enter happen immediately, without the side effects of other attempted fixes.
This commit is contained in:
parent
024b9d85ea
commit
e787a1581c
4 changed files with 13 additions and 1 deletions
|
|
@ -218,7 +218,7 @@ static struct sway_container *container_at_tabbed(struct sway_node *parent,
|
|||
|
||||
// Surfaces
|
||||
struct sway_node *current = seat_get_active_child(seat, parent);
|
||||
return tiling_container_at(current, lx, ly, surface, sx, sy);
|
||||
return current ? tiling_container_at(current, lx, ly, surface, sx, sy) : NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue