From 5657a77c5bee336af57fabd632fab1f31c9d67af Mon Sep 17 00:00:00 2001 From: Victoria Brekenfeld Date: Tue, 22 Mar 2022 12:42:44 +0100 Subject: [PATCH] state: Remove global notion of a primary device. This only makes sense in the context of the kms backend util EGL_EXT_explicit_device is accepted and implemented by any driver. --- src/state.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/state.rs b/src/state.rs index 3c6f43a0..4b1a7cdd 100644 --- a/src/state.rs +++ b/src/state.rs @@ -6,7 +6,6 @@ use crate::{ shell::{init_shell, workspaces::Workspaces, ShellStates}, }; use smithay::{ - backend::drm::DrmNode, reexports::{ calloop::LoopHandle, wayland_server::{protocol::wl_surface::WlSurface, Display}, @@ -39,7 +38,6 @@ pub struct Common { pub display: Rc>, pub socket: OsString, pub event_loop_handle: LoopHandle<'static, State>, - pub primary_gpu: Option, pub spaces: Workspaces, pub shell: ShellStates, @@ -168,16 +166,11 @@ impl State { #[cfg(feature = "debug")] let dirty_flag = log.dirty_flag.clone(); - let primary_gpu = std::env::var("COSMIC_RENDER_DEVICE") - .ok() - .and_then(|device| DrmNode::from_path(device).ok()); - State { common: Common { display: Rc::new(RefCell::new(display)), socket, event_loop_handle: handle, - primary_gpu, spaces: Workspaces::new(), shell: shell_handles,