@@ -40,8 +40,6 @@ impl DataDeviceHandler for GlobalState {
4040 _qh : & sctk:: reexports:: client:: QueueHandle < Self > ,
4141 data_device : & WlDataDevice ,
4242 ) {
43- println ! ( "selection" ) ;
44-
4543 let seat = match self
4644 . server_state
4745 . seats
@@ -72,7 +70,6 @@ impl DataDeviceHandler for GlobalState {
7270 mime_types,
7371 ( ) ,
7472 ) ;
75- println ! ( "set" ) ;
7673 }
7774
7875 fn enter (
@@ -84,8 +81,6 @@ impl DataDeviceHandler for GlobalState {
8481 _y : f64 ,
8582 surface : & WlSurface ,
8683 ) {
87- println ! ( "Enter" ) ;
88-
8984 let seat = match self
9085 . server_state
9186 . seats
@@ -134,7 +129,6 @@ impl DataDeviceHandler for GlobalState {
134129 } else if c_action. contains ( ClientDndAction :: Ask ) {
135130 dnd_actions. push ( DndAction :: Ask ) ;
136131 }
137- dbg ! ( & dnd_actions) ;
138132
139133 let metadata = SourceMetadata { mime_types, dnd_actions } ;
140134 let ( x, y) = ( offer. x , offer. y ) ;
@@ -148,27 +142,11 @@ impl DataDeviceHandler for GlobalState {
148142 offer. surface . clone ( ) ,
149143 & ptr,
150144 ) ;
151- dbg ! ( seat. client. next_dnd_offer_is_mine) ;
152145
153146 // TODO: touch vs pointer start data
154147 if !seat. client . next_dnd_offer_is_mine {
155148 let focus = server_focus;
156- eprintln ! ( "START DND" ) ;
157- /* TODO start server drag
158- start_dnd(
159- &self.server_state.display_handle.clone(),
160- &seat.server.seat.clone(),
161- self,
162- SERIAL_COUNTER.next_serial(),
163- Some(GrabStartData {
164- focus: focus.map(|f| (f.surface, f.s_pos.to_f64())),
165- button: 0x110, // assume left button for now, maybe there is another way..
166- location: (x, y).into(),
167- }),
168- None,
169- metadata,
170- );
171- */
149+
172150 let pointer_start_data = GrabStartData {
173151 focus : focus. map ( |f| ( f. surface , f. s_pos . to_f64 ( ) ) ) ,
174152 button : 0x110 , // assume left button for now, maybe there is another way..
@@ -179,7 +157,6 @@ impl DataDeviceHandler for GlobalState {
179157 use smithay:: input:: dnd:: DnDGrab ;
180158 use smithay:: input:: pointer:: Focus ;
181159 let source = ServerGrabSource { metadata, dnd_offer : offer } ;
182- dbg ! ( "START DND GRAB" ) ;
183160 let dnd_grab = DnDGrab :: new_pointer (
184161 & self . server_state . display_handle ,
185162 pointer_start_data,
@@ -189,7 +166,7 @@ impl DataDeviceHandler for GlobalState {
189166 pointer. set_grab ( self , dnd_grab, SERIAL_COUNTER . next_serial ( ) , Focus :: Keep ) ;
190167 }
191168 } else {
192- dbg ! ( "Internal DND not starting server drag" ) ;
169+ tracing :: info !( "Internal DND not starting server drag" ) ;
193170 }
194171 }
195172
@@ -199,7 +176,6 @@ impl DataDeviceHandler for GlobalState {
199176 qh : & sctk:: reexports:: client:: QueueHandle < Self > ,
200177 data_device : & WlDataDevice ,
201178 ) {
202- println ! ( "Leave" ) ;
203179 let seat = match self
204180 . server_state
205181 . seats
@@ -251,7 +227,6 @@ impl DataDeviceHandler for GlobalState {
251227 _x : f64 ,
252228 _y : f64 ,
253229 ) {
254- // println!("Motion");
255230 // treat it as pointer motion
256231 let seat = match self
257232 . server_state
@@ -303,7 +278,6 @@ impl DataDeviceHandler for GlobalState {
303278 qh : & sctk:: reexports:: client:: QueueHandle < Self > ,
304279 data_device : & WlDataDevice ,
305280 ) {
306- println ! ( "Drop performed" ) ;
307281 // treat it as pointer button release
308282 let seat = match self
309283 . server_state
0 commit comments