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.
This commit is contained in:
parent
742780ddc3
commit
5657a77c5b
1 changed files with 0 additions and 7 deletions
|
|
@ -6,7 +6,6 @@ use crate::{
|
||||||
shell::{init_shell, workspaces::Workspaces, ShellStates},
|
shell::{init_shell, workspaces::Workspaces, ShellStates},
|
||||||
};
|
};
|
||||||
use smithay::{
|
use smithay::{
|
||||||
backend::drm::DrmNode,
|
|
||||||
reexports::{
|
reexports::{
|
||||||
calloop::LoopHandle,
|
calloop::LoopHandle,
|
||||||
wayland_server::{protocol::wl_surface::WlSurface, Display},
|
wayland_server::{protocol::wl_surface::WlSurface, Display},
|
||||||
|
|
@ -39,7 +38,6 @@ pub struct Common {
|
||||||
pub display: Rc<RefCell<Display>>,
|
pub display: Rc<RefCell<Display>>,
|
||||||
pub socket: OsString,
|
pub socket: OsString,
|
||||||
pub event_loop_handle: LoopHandle<'static, State>,
|
pub event_loop_handle: LoopHandle<'static, State>,
|
||||||
pub primary_gpu: Option<DrmNode>,
|
|
||||||
|
|
||||||
pub spaces: Workspaces,
|
pub spaces: Workspaces,
|
||||||
pub shell: ShellStates,
|
pub shell: ShellStates,
|
||||||
|
|
@ -168,16 +166,11 @@ impl State {
|
||||||
#[cfg(feature = "debug")]
|
#[cfg(feature = "debug")]
|
||||||
let dirty_flag = log.dirty_flag.clone();
|
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 {
|
State {
|
||||||
common: Common {
|
common: Common {
|
||||||
display: Rc::new(RefCell::new(display)),
|
display: Rc::new(RefCell::new(display)),
|
||||||
socket,
|
socket,
|
||||||
event_loop_handle: handle,
|
event_loop_handle: handle,
|
||||||
primary_gpu,
|
|
||||||
|
|
||||||
spaces: Workspaces::new(),
|
spaces: Workspaces::new(),
|
||||||
shell: shell_handles,
|
shell: shell_handles,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue