Remove last_cursor_position from CosmicMapped
Since 5459f52d, this is no longer ever set.
This commit is contained in:
parent
f63d901406
commit
b75be5b305
1 changed files with 1 additions and 14 deletions
|
|
@ -39,7 +39,6 @@ use window::CosmicWindowInternal;
|
||||||
|
|
||||||
use std::{
|
use std::{
|
||||||
borrow::Cow,
|
borrow::Cow,
|
||||||
collections::HashMap,
|
|
||||||
fmt,
|
fmt,
|
||||||
hash::Hash,
|
hash::Hash,
|
||||||
sync::{atomic::AtomicBool, Arc, Mutex, Weak},
|
sync::{atomic::AtomicBool, Arc, Mutex, Weak},
|
||||||
|
|
@ -71,7 +70,7 @@ use super::{
|
||||||
floating::{ResizeState, TiledCorners},
|
floating::{ResizeState, TiledCorners},
|
||||||
tiling::NodeDesc,
|
tiling::NodeDesc,
|
||||||
},
|
},
|
||||||
ManagedLayer, SeatExt,
|
ManagedLayer,
|
||||||
};
|
};
|
||||||
use cosmic_settings_config::shortcuts::action::{Direction, FocusDirection};
|
use cosmic_settings_config::shortcuts::action::{Direction, FocusDirection};
|
||||||
|
|
||||||
|
|
@ -93,7 +92,6 @@ pub struct CosmicMapped {
|
||||||
element: CosmicMappedInternal,
|
element: CosmicMappedInternal,
|
||||||
|
|
||||||
// associated data
|
// associated data
|
||||||
last_cursor_position: Arc<Mutex<HashMap<usize, Point<f64, Logical>>>>,
|
|
||||||
pub maximized_state: Arc<Mutex<Option<MaximizedState>>>,
|
pub maximized_state: Arc<Mutex<Option<MaximizedState>>>,
|
||||||
|
|
||||||
//tiling
|
//tiling
|
||||||
|
|
@ -114,7 +112,6 @@ impl fmt::Debug for CosmicMapped {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||||
f.debug_struct("CosmicMapped")
|
f.debug_struct("CosmicMapped")
|
||||||
.field("element", &self.element)
|
.field("element", &self.element)
|
||||||
.field("last_cursor_position", &self.last_cursor_position)
|
|
||||||
.field("maximized_state", &self.maximized_state)
|
.field("maximized_state", &self.maximized_state)
|
||||||
.field("tiling_node_id", &self.tiling_node_id)
|
.field("tiling_node_id", &self.tiling_node_id)
|
||||||
.field("resize_state", &self.resize_state)
|
.field("resize_state", &self.resize_state)
|
||||||
|
|
@ -234,14 +231,6 @@ impl CosmicMapped {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn cursor_position(&self, seat: &Seat<State>) -> Option<Point<f64, Logical>> {
|
|
||||||
self.last_cursor_position
|
|
||||||
.lock()
|
|
||||||
.unwrap()
|
|
||||||
.get(&seat.id())
|
|
||||||
.cloned()
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn set_active<S>(&self, window: &S)
|
pub fn set_active<S>(&self, window: &S)
|
||||||
where
|
where
|
||||||
CosmicSurface: PartialEq<S>,
|
CosmicSurface: PartialEq<S>,
|
||||||
|
|
@ -986,7 +975,6 @@ impl From<CosmicWindow> for CosmicMapped {
|
||||||
fn from(w: CosmicWindow) -> Self {
|
fn from(w: CosmicWindow) -> Self {
|
||||||
CosmicMapped {
|
CosmicMapped {
|
||||||
element: CosmicMappedInternal::Window(w),
|
element: CosmicMappedInternal::Window(w),
|
||||||
last_cursor_position: Arc::new(Mutex::new(HashMap::new())),
|
|
||||||
maximized_state: Arc::new(Mutex::new(None)),
|
maximized_state: Arc::new(Mutex::new(None)),
|
||||||
tiling_node_id: Arc::new(Mutex::new(None)),
|
tiling_node_id: Arc::new(Mutex::new(None)),
|
||||||
resize_state: Arc::new(Mutex::new(None)),
|
resize_state: Arc::new(Mutex::new(None)),
|
||||||
|
|
@ -1004,7 +992,6 @@ impl From<CosmicStack> for CosmicMapped {
|
||||||
fn from(s: CosmicStack) -> Self {
|
fn from(s: CosmicStack) -> Self {
|
||||||
CosmicMapped {
|
CosmicMapped {
|
||||||
element: CosmicMappedInternal::Stack(s),
|
element: CosmicMappedInternal::Stack(s),
|
||||||
last_cursor_position: Arc::new(Mutex::new(HashMap::new())),
|
|
||||||
maximized_state: Arc::new(Mutex::new(None)),
|
maximized_state: Arc::new(Mutex::new(None)),
|
||||||
tiling_node_id: Arc::new(Mutex::new(None)),
|
tiling_node_id: Arc::new(Mutex::new(None)),
|
||||||
resize_state: Arc::new(Mutex::new(None)),
|
resize_state: Arc::new(Mutex::new(None)),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue