Remove window decorator
This commit is contained in:
parent
67daf0d433
commit
d08f9e2a98
|
@ -10,7 +10,6 @@ use std::{
|
||||||
use smithay::{
|
use smithay::{
|
||||||
reexports::{
|
reexports::{
|
||||||
calloop::{generic::Generic, Interest, LoopHandle, Mode, PostAction},
|
calloop::{generic::Generic, Interest, LoopHandle, Mode, PostAction},
|
||||||
wayland_protocols::unstable::xdg_decoration,
|
|
||||||
wayland_server::{protocol::wl_surface::WlSurface, Display},
|
wayland_server::{protocol::wl_surface::WlSurface, Display},
|
||||||
},
|
},
|
||||||
utils::{Logical, Point},
|
utils::{Logical, Point},
|
||||||
|
@ -18,7 +17,7 @@ use smithay::{
|
||||||
data_device::{default_action_chooser, init_data_device, set_data_device_focus, DataDeviceEvent},
|
data_device::{default_action_chooser, init_data_device, set_data_device_focus, DataDeviceEvent},
|
||||||
output::xdg::init_xdg_output_manager,
|
output::xdg::init_xdg_output_manager,
|
||||||
seat::{CursorImageStatus, KeyboardHandle, PointerHandle, Seat, XkbConfig},
|
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,
|
shm::init_shm_global,
|
||||||
tablet_manager::{init_tablet_manager_global, TabletSeatTrait},
|
tablet_manager::{init_tablet_manager_global, TabletSeatTrait},
|
||||||
xdg_activation::{init_xdg_activation_global, XdgActivationEvent},
|
xdg_activation::{init_xdg_activation_global, XdgActivationEvent},
|
||||||
|
@ -124,21 +123,7 @@ impl<BackendData: Backend + 'static> AnvilState<BackendData> {
|
||||||
|
|
||||||
init_xdg_decoration_manager(
|
init_xdg_decoration_manager(
|
||||||
&mut display.borrow_mut(),
|
&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(),
|
log.clone(),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue