chore: Fix a few warnings
This commit is contained in:
parent
f12f4db0e1
commit
61b0dddf50
2 changed files with 3 additions and 6 deletions
|
|
@ -871,7 +871,7 @@ impl CosmicMapped {
|
||||||
match &self.element {
|
match &self.element {
|
||||||
CosmicMappedInternal::Window(w) => (!w.surface().is_decorated(pending))
|
CosmicMappedInternal::Window(w) => (!w.surface().is_decorated(pending))
|
||||||
.then(|| crate::shell::element::window::SSD_HEIGHT),
|
.then(|| crate::shell::element::window::SSD_HEIGHT),
|
||||||
CosmicMappedInternal::Stack(s) => Some(crate::shell::element::stack::TAB_HEIGHT),
|
CosmicMappedInternal::Stack(_) => Some(crate::shell::element::stack::TAB_HEIGHT),
|
||||||
_ => unreachable!(),
|
_ => unreachable!(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,6 @@
|
||||||
// SPDX-License-Identifier: GPL-3.0-only
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use std::{
|
use std::{collections::HashMap, sync::Mutex};
|
||||||
collections::{HashMap, HashSet},
|
|
||||||
sync::Mutex,
|
|
||||||
};
|
|
||||||
|
|
||||||
use cosmic_protocols::{
|
use cosmic_protocols::{
|
||||||
overlap_notify::v1::server::{
|
overlap_notify::v1::server::{
|
||||||
|
|
@ -169,7 +166,7 @@ pub trait OverlapNotifyHandler: ToplevelInfoHandler {
|
||||||
fn overlap_notify_state(&mut self) -> &mut OverlapNotifyState;
|
fn overlap_notify_state(&mut self) -> &mut OverlapNotifyState;
|
||||||
fn layer_surface_from_resource(&self, resource: ZwlrLayerSurfaceV1) -> Option<LayerSurface>;
|
fn layer_surface_from_resource(&self, resource: ZwlrLayerSurfaceV1) -> Option<LayerSurface>;
|
||||||
fn outputs(&self) -> impl Iterator<Item = Output>;
|
fn outputs(&self) -> impl Iterator<Item = Output>;
|
||||||
fn active_workspaces(&self) -> impl Iterator<Item = (WorkspaceHandle)>;
|
fn active_workspaces(&self) -> impl Iterator<Item = WorkspaceHandle>;
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct OverlapNotifyGlobalData {
|
pub struct OverlapNotifyGlobalData {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue