wlroots/backend/drm
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
..
atomic.c Only set max_bpc when full modesetting is being done. 2022-09-16 14:15:58 +00:00
backend.c backend/drm: ensure disconnected outputs are disabled after VT switch 2022-11-11 22:44:53 +00:00
cvt.c backend/drm: add support for custom modes 2019-10-27 10:46:47 -04:00
drm.c backend/drm: request page-flip event on modeset 2022-11-11 14:46:51 +00:00
gen_pnpids.sh backend/drm: use pnp.ids to fetch EDID data 2022-11-09 00:25:18 +03:00
legacy.c backend/drm/legacy: Fix whitespace 2022-10-13 10:51:11 -04:00
meson.build backend/drm: use pnp.ids to fetch EDID data 2022-11-09 00:25:18 +03:00
monitor.c backend/drm: add wlr_drm_backend_monitor 2021-12-13 14:55:16 +01:00
properties.c backend/drm: set "max bpc" to the max 2022-06-19 16:55:36 +00:00
renderer.c backend/drm: log failures in drm_surface_blit() 2022-10-18 16:39:22 +02:00
util.c backend/drm: use pnp.ids to fetch EDID data 2022-11-09 00:25:18 +03:00