deps: update for new smithay version
This commit is contained in:
parent
1ab0196502
commit
25b44fde58
11 changed files with 230 additions and 237 deletions
|
|
@ -6,6 +6,7 @@ use crate::{
|
|||
shell::{init_shell, workspaces::Workspaces, ShellStates},
|
||||
};
|
||||
use smithay::{
|
||||
backend::drm::DrmNode,
|
||||
reexports::{
|
||||
calloop::LoopHandle,
|
||||
wayland_server::{protocol::wl_surface::WlSurface, Display},
|
||||
|
|
@ -38,6 +39,7 @@ pub struct Common {
|
|||
pub display: Rc<RefCell<Display>>,
|
||||
pub socket: OsString,
|
||||
pub event_loop_handle: LoopHandle<'static, State>,
|
||||
pub primary_gpu: Option<DrmNode>,
|
||||
|
||||
pub spaces: Workspaces,
|
||||
pub shell: ShellStates,
|
||||
|
|
@ -166,11 +168,16 @@ 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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue