mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-01 18:27:58 +02:00
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:
parent
a7dad91d8f
commit
cc3542b574
1 changed files with 2 additions and 4 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue