forge
Explore
Log in

Don't you dare go Hollow

Remove hack for fixed EGLDisplay issue

Browse files at this commit

5f99eb13ab3e26f860a858b52129ce6227441e35Christian MeisslParent: 20326b0
src/backend/tty.rsmodified+0 -6
@@ -370,12 +370,6 @@ impl Tty {
370 let display = unsafe { EGLDisplay::new(gbm.clone())? };370 let display = unsafe { EGLDisplay::new(gbm.clone())? };
371 let egl_device = EGLDevice::device_for_display(&display)?;371 let egl_device = EGLDevice::device_for_display(&display)?;
372 372
373- // HACK: There's an issue in Smithay where the display created by GpuManager will be the
374- // same as the one we just created here, so when ours is dropped at the end of the scope,
375- // it will also close the long-lived display in GpuManager. Thus, we need to drop ours
376- // beforehand.
377- drop(display);
378-
379 let render_node = egl_device373 let render_node = egl_device
380 .try_get_render_node()?374 .try_get_render_node()?
381 .context("no render node")?;375 .context("no render node")?;