mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-29 11:08:22 -05:00
backend/drm: introduce wlr_drm_connector.name
The DRM backend is a little special when it comes to wlr_outputs: the wlr_drm_connectors are long-lived and are created even when no screen is connected. A wlr_drm_connector only advertises a wlr_output to the compositor when a screen is connected. As such, most of wlr_output's state is invalid when the connector is disconnected. We want to stop using wlr_output state on disconnected connectors. Introduce wlr_drm_connector.name which is always valid regardless of the connector status to avoid reading wlr_output.name when disconnected.
This commit is contained in:
parent
c89b131f29
commit
019ffe8a5b
3 changed files with 13 additions and 13 deletions
|
|
@ -33,7 +33,7 @@ static bool atomic_commit(struct atomic *atom,
|
|||
int ret = drmModeAtomicCommit(drm->fd, atom->req, flags, drm);
|
||||
if (ret) {
|
||||
wlr_log_errno(WLR_ERROR, "%s: Atomic %s failed (%s)",
|
||||
conn->output.name,
|
||||
conn->name,
|
||||
(flags & DRM_MODE_ATOMIC_TEST_ONLY) ? "test" : "commit",
|
||||
(flags & DRM_MODE_ATOMIC_ALLOW_MODESET) ? "modeset" : "pageflip");
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue