diff options
Diffstat (limited to 'src/backend')
| -rw-r--r-- | src/backend/tty.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/backend/tty.rs b/src/backend/tty.rs index 2f2e7a90..5646e8d3 100644 --- a/src/backend/tty.rs +++ b/src/backend/tty.rs @@ -66,14 +66,16 @@ type GbmDrmCompositor = DrmCompositor< struct OutputDevice { id: dev_t, token: RegistrationToken, - drm: DrmDevice, - gbm: GbmDevice<DrmDeviceFd>, gles: GlesRenderer, formats: HashSet<DrmFormat>, drm_scanner: DrmScanner, surfaces: HashMap<crtc::Handle, Surface>, dmabuf_state: DmabufState, dmabuf_global: DmabufGlobal, + // SAFETY: drop after all the objects used with them are dropped. + // See https://github.com/Smithay/smithay/issues/1102. + drm: DrmDevice, + gbm: GbmDevice<DrmDeviceFd>, } #[derive(Debug, Clone, Copy)] |
