desktop-shell: Use the correct link iterator

Mistakenly used weston_seat as opposed to shell_seat when iterating over
the shell seats. This unfortunately takes down the compositor upon switching
back.

Fixes: 4c100ca1d7 ('desktop-shell: Add session listener')

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
This commit is contained in:
Marius Vlad 2024-07-03 12:57:07 +03:00 committed by Daniel Stone
parent a7dad91d8f
commit cc3542b574

View file

@ -4879,14 +4879,12 @@ desktop_shell_notify_session(struct wl_listener *listener, void *data)
struct desktop_shell *shell =
container_of(listener, struct desktop_shell, session_listener);
struct weston_compositor *compositor = data;
struct weston_seat *seat;
struct shell_seat *shseat;
if (!compositor->session_active)
return;
wl_list_for_each(seat, &shell->seat_list, link) {
struct shell_seat *shseat = get_shell_seat(seat);
wl_list_for_each(shseat, &shell->seat_list, link) {
if (!shseat)
continue;