@@ -5,15 +5,11 @@ use std::sync::{Arc, Mutex, Weak};
55use dpi:: { LogicalPosition , PhysicalInsets , PhysicalPosition , PhysicalSize , Position , Size } ;
66use rwh_06:: RawWindowHandle ;
77use sctk:: compositor:: SurfaceData ;
8- use sctk:: reexports:: client:: protocol:: wl_surface:: WlSurface ;
98use sctk:: shell:: WaylandSurface ;
109use sctk:: shell:: xdg:: popup:: Popup as SctkPopup ;
1110use sctk:: shell:: xdg:: { XdgPositioner , XdgSurface } ;
1211use wayland_client:: Proxy ;
1312use wayland_client:: protocol:: wl_display:: WlDisplay ;
14- use wayland_protocols:: xdg:: shell:: client:: xdg_positioner:: {
15- Anchor , ConstraintAdjustment , Gravity ,
16- } ;
1713use winit_core:: cursor:: Cursor ;
1814use winit_core:: error:: { NotSupportedError , RequestError } ;
1915use winit_core:: event:: { Ime , WindowEvent } ;
@@ -122,7 +118,6 @@ impl Popup {
122118 size. to_logical ( scale_factor) . width ,
123119 size. to_logical ( scale_factor) . height ,
124120 ) ;
125- positioner. set_constraint_adjustment ( ConstraintAdjustment :: all ( ) ) ;
126121
127122 let parent_surface = parent_window_state. window . xdg_surface ( ) ;
128123 let surface = state. compositor_state . create_surface ( & queue_handle) ;
0 commit comments