input/seat: dirty node after unfocus

Dirty the node that has been unfocused during layer focus so that the
focus change is reflected in the window decorations.
This commit is contained in:
Scott Leggett 2026-05-31 13:16:52 +08:00 committed by Simon Ser
parent 33ae5a92d5
commit f3011841aa

View file

@ -1285,6 +1285,7 @@ void seat_set_focus_surface(struct sway_seat *seat,
if (seat->has_focus && unfocus) { if (seat->has_focus && unfocus) {
struct sway_node *focus = seat_get_focus(seat); struct sway_node *focus = seat_get_focus(seat);
seat_send_unfocus(focus, seat); seat_send_unfocus(focus, seat);
node_set_dirty(focus);
seat->has_focus = false; seat->has_focus = false;
} }