chore: Update smithay
This commit is contained in:
parent
4ee5aaf741
commit
a308997fd4
17 changed files with 64 additions and 5 deletions
|
|
@ -38,6 +38,7 @@ use tracing::trace;
|
|||
|
||||
use std::{convert::TryFrom, path::PathBuf, sync::Arc};
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct WlDrmState;
|
||||
|
||||
/// Data associated with a drm global.
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ use std::{
|
|||
},
|
||||
};
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct OutputConfigurationState<D> {
|
||||
outputs: Vec<Output>,
|
||||
removed_outputs: Vec<Output>,
|
||||
|
|
@ -48,12 +49,14 @@ pub struct OutputMngrGlobalData {
|
|||
filter: Box<dyn for<'a> Fn(&'a Client) -> bool + Send + Sync>,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
struct OutputMngrInstance {
|
||||
obj: ZwlrOutputManagerV1,
|
||||
active: Arc<AtomicBool>,
|
||||
heads: Vec<OutputHeadInstance>,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
struct OutputHeadInstance {
|
||||
output: Output,
|
||||
head: ZwlrOutputHeadV1,
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ use super::{
|
|||
};
|
||||
|
||||
/// Screencopy global state
|
||||
#[derive(Debug)]
|
||||
pub struct ScreencopyState {
|
||||
global: GlobalId,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ pub trait Window: IsAlive + Clone + Send {
|
|||
fn user_data(&self) -> &UserDataMap;
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct ToplevelInfoState<D, W: Window> {
|
||||
dh: DisplayHandle,
|
||||
pub(super) toplevels: Vec<W>,
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ use cosmic_protocols::toplevel_management::v1::server::zcosmic_toplevel_manager_
|
|||
|
||||
use super::toplevel_info::{window_from_handle, ToplevelInfoHandler, ToplevelState, Window};
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct ToplevelManagementState {
|
||||
instances: Vec<ZcosmicToplevelManagerV1>,
|
||||
capabilities: Vec<ManagementCapabilities>,
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ pub use cosmic_protocols::workspace::v1::server::{
|
|||
zcosmic_workspace_handle_v1::ZcosmicWorkspaceCapabilitiesV1 as WorkspaceCapabilities,
|
||||
};
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct WorkspaceState<D>
|
||||
where
|
||||
D: GlobalDispatch<ZcosmicWorkspaceManagerV1, WorkspaceGlobalData>
|
||||
|
|
@ -50,7 +51,7 @@ where
|
|||
crate::utils::id_gen!(next_group_id, GROUP_ID, GROUP_IDS);
|
||||
crate::utils::id_gen!(next_workspace_id, WORKSPACE_ID, WORKSPACE_IDS);
|
||||
|
||||
#[derive(Default)]
|
||||
#[derive(Debug, Default)]
|
||||
pub struct WorkspaceGroup {
|
||||
id: usize,
|
||||
instances: Vec<ZcosmicWorkspaceGroupHandleV1>,
|
||||
|
|
@ -72,7 +73,7 @@ pub struct WorkspaceGroupDataInner {
|
|||
}
|
||||
pub type WorkspaceGroupData = Mutex<WorkspaceGroupDataInner>;
|
||||
|
||||
#[derive(Default)]
|
||||
#[derive(Debug, Default)]
|
||||
pub struct Workspace {
|
||||
id: usize,
|
||||
instances: Vec<ZcosmicWorkspaceHandleV1>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue