feat(wayland): update smithay

This commit is contained in:
Nova
2022-09-02 10:09:36 -04:00
parent 28338cd2e5
commit 5c91a432f5
3 changed files with 17 additions and 38 deletions

View File

@@ -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!()
}
}