feat(wayland): update smithay
This commit is contained in:
@@ -6,13 +6,11 @@ use smithay::{
|
||||
decoration::zv1::server::zxdg_toplevel_decoration_v1::Mode,
|
||||
shell::server::xdg_toplevel::State,
|
||||
},
|
||||
wayland_server::{protocol::wl_seat::WlSeat, DisplayHandle},
|
||||
wayland_server::protocol::wl_seat::WlSeat,
|
||||
},
|
||||
wayland::{
|
||||
shell::xdg::{
|
||||
PopupSurface, PositionerState, ToplevelSurface, XdgShellHandler, XdgShellState,
|
||||
},
|
||||
Serial,
|
||||
utils::Serial,
|
||||
wayland::shell::xdg::{
|
||||
PopupSurface, PositionerState, ToplevelSurface, XdgShellHandler, XdgShellState,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -21,7 +19,7 @@ impl XdgShellHandler for WaylandState {
|
||||
&mut self.xdg_shell_state
|
||||
}
|
||||
|
||||
fn new_toplevel(&mut self, _dh: &DisplayHandle, surface: ToplevelSurface) {
|
||||
fn new_toplevel(&mut self, surface: ToplevelSurface) {
|
||||
self.output
|
||||
.enter(&self.display_handle, surface.wl_surface());
|
||||
surface.with_pending_state(|state| {
|
||||
@@ -31,21 +29,9 @@ impl XdgShellHandler for WaylandState {
|
||||
surface.send_configure();
|
||||
}
|
||||
|
||||
fn new_popup(
|
||||
&mut self,
|
||||
_dh: &DisplayHandle,
|
||||
_surface: PopupSurface,
|
||||
_positioner: PositionerState,
|
||||
) {
|
||||
}
|
||||
fn new_popup(&mut self, _surface: PopupSurface, _positioner: PositionerState) {}
|
||||
|
||||
fn grab(
|
||||
&mut self,
|
||||
_dh: &DisplayHandle,
|
||||
_surface: PopupSurface,
|
||||
_seat: WlSeat,
|
||||
_serial: Serial,
|
||||
) {
|
||||
fn grab(&mut self, _surface: PopupSurface, _seat: WlSeat, _serial: Serial) {
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user