wlroots/backend
Simon Ser 1c4a625fe3 backend/drm: ensure disconnected outputs are disabled after VT switch
The following situation can be dangerous:

- Output DP-1 is plugged in, compositor enables it.
- User VT switches away.
- User unplugs DP-1.
- User VT switches back.
- scan_drm_connectors() figures out the output is now disconnected,
  uninitializes the struct wlr_output.
- The loop restoring previous output state in handle_session_active()
  accesses the struct wlr_output to figure out what to restore.

By chance, we zero out the struct wlr_output after uninitializing it,
so enabled and current_mode will always be zero. But let's make sure
we handle this case explicitly, to remind future readers that it exists
and make the code less fragile.
2022-11-11 22:44:53 +00:00
..
drm backend/drm: ensure disconnected outputs are disabled after VT switch 2022-11-11 22:44:53 +00:00
headless backend: use global output name counters 2022-10-13 13:12:43 +02:00
libinput backend/libinput: Fix SIGSEGV found in low-memory fuzzing 2022-09-22 13:37:32 -04:00
multi Use wl_signal_emit_mutable 2022-08-18 07:16:16 -04:00
session Use wl_signal_emit_mutable 2022-08-18 07:16:16 -04:00
wayland backend: use global output name counters 2022-10-13 13:12:43 +02:00
x11 backend: use global output name counters 2022-10-13 13:12:43 +02:00
backend.c Use env helpers 2022-08-22 10:18:52 -04:00
meson.build backend: remove noop backend 2021-11-25 16:49:05 +00:00