Remove window decorator

This commit is contained in:
Victor Timofei 2021-12-19 03:17:04 +02:00
parent 67daf0d433
commit d08f9e2a98
Signed by: vtimofei
GPG Key ID: B790DCEBE281403A
1 changed files with 2 additions and 17 deletions

View File

@ -10,7 +10,6 @@ use std::{
use smithay::{
reexports::{
calloop::{generic::Generic, Interest, LoopHandle, Mode, PostAction},
wayland_protocols::unstable::xdg_decoration,
wayland_server::{protocol::wl_surface::WlSurface, Display},
},
utils::{Logical, Point},
@ -18,7 +17,7 @@ use smithay::{
data_device::{default_action_chooser, init_data_device, set_data_device_focus, DataDeviceEvent},
output::xdg::init_xdg_output_manager,
seat::{CursorImageStatus, KeyboardHandle, PointerHandle, Seat, XkbConfig},
shell::xdg::decoration::{init_xdg_decoration_manager, XdgDecorationRequest},
shell::xdg::decoration::init_xdg_decoration_manager,
shm::init_shm_global,
tablet_manager::{init_tablet_manager_global, TabletSeatTrait},
xdg_activation::{init_xdg_activation_global, XdgActivationEvent},
@ -124,21 +123,7 @@ impl<BackendData: Backend + 'static> AnvilState<BackendData> {
init_xdg_decoration_manager(
&mut display.borrow_mut(),
|req, _ddata| match req {
XdgDecorationRequest::NewToplevelDecoration { toplevel } => {
use xdg_decoration::v1::server::zxdg_toplevel_decoration_v1::Mode;
let res = toplevel.with_pending_state(|state| {
state.decoration_mode = Some(Mode::ClientSide);
});
if res.is_ok() {
toplevel.send_configure();
}
}
XdgDecorationRequest::SetMode { .. } => {}
XdgDecorationRequest::UnsetMode { .. } => {}
},
|_, _| {},
log.clone(),
);