@@ -39,7 +39,6 @@ use window::CosmicWindowInternal;
3939
4040use std:: {
4141 borrow:: Cow ,
42- collections:: HashMap ,
4342 fmt,
4443 hash:: Hash ,
4544 sync:: { atomic:: AtomicBool , Arc , Mutex , Weak } ,
@@ -71,7 +70,7 @@ use super::{
7170 floating:: { ResizeState , TiledCorners } ,
7271 tiling:: NodeDesc ,
7372 } ,
74- ManagedLayer , SeatExt ,
73+ ManagedLayer ,
7574} ;
7675use cosmic_settings_config:: shortcuts:: action:: { Direction , FocusDirection } ;
7776
@@ -93,7 +92,6 @@ pub struct CosmicMapped {
9392 element : CosmicMappedInternal ,
9493
9594 // associated data
96- last_cursor_position : Arc < Mutex < HashMap < usize , Point < f64 , Logical > > > > ,
9795 pub maximized_state : Arc < Mutex < Option < MaximizedState > > > ,
9896
9997 //tiling
@@ -114,7 +112,6 @@ impl fmt::Debug for CosmicMapped {
114112 fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
115113 f. debug_struct ( "CosmicMapped" )
116114 . field ( "element" , & self . element )
117- . field ( "last_cursor_position" , & self . last_cursor_position )
118115 . field ( "maximized_state" , & self . maximized_state )
119116 . field ( "tiling_node_id" , & self . tiling_node_id )
120117 . field ( "resize_state" , & self . resize_state )
@@ -234,14 +231,6 @@ impl CosmicMapped {
234231 }
235232 }
236233
237- pub fn cursor_position ( & self , seat : & Seat < State > ) -> Option < Point < f64 , Logical > > {
238- self . last_cursor_position
239- . lock ( )
240- . unwrap ( )
241- . get ( & seat. id ( ) )
242- . cloned ( )
243- }
244-
245234 pub fn set_active < S > ( & self , window : & S )
246235 where
247236 CosmicSurface : PartialEq < S > ,
@@ -986,7 +975,6 @@ impl From<CosmicWindow> for CosmicMapped {
986975 fn from ( w : CosmicWindow ) -> Self {
987976 CosmicMapped {
988977 element : CosmicMappedInternal :: Window ( w) ,
989- last_cursor_position : Arc :: new ( Mutex :: new ( HashMap :: new ( ) ) ) ,
990978 maximized_state : Arc :: new ( Mutex :: new ( None ) ) ,
991979 tiling_node_id : Arc :: new ( Mutex :: new ( None ) ) ,
992980 resize_state : Arc :: new ( Mutex :: new ( None ) ) ,
@@ -1004,7 +992,6 @@ impl From<CosmicStack> for CosmicMapped {
1004992 fn from ( s : CosmicStack ) -> Self {
1005993 CosmicMapped {
1006994 element : CosmicMappedInternal :: Stack ( s) ,
1007- last_cursor_position : Arc :: new ( Mutex :: new ( HashMap :: new ( ) ) ) ,
1008995 maximized_state : Arc :: new ( Mutex :: new ( None ) ) ,
1009996 tiling_node_id : Arc :: new ( Mutex :: new ( None ) ) ,
1010997 resize_state : Arc :: new ( Mutex :: new ( None ) ) ,
0 commit comments