shell: Don't advertise minimize/windowmenu capabilities
This commit is contained in:
parent
c79c75eae7
commit
c99126d2c7
1 changed files with 8 additions and 2 deletions
|
|
@ -20,7 +20,10 @@ use smithay::{
|
||||||
},
|
},
|
||||||
output::Output,
|
output::Output,
|
||||||
reexports::{
|
reexports::{
|
||||||
wayland_protocols::ext::session_lock::v1::server::ext_session_lock_v1::ExtSessionLockV1,
|
wayland_protocols::{
|
||||||
|
ext::session_lock::v1::server::ext_session_lock_v1::ExtSessionLockV1,
|
||||||
|
xdg::shell::server::xdg_toplevel::WmCapabilities,
|
||||||
|
},
|
||||||
wayland_server::{protocol::wl_surface::WlSurface, Client, DisplayHandle},
|
wayland_server::{protocol::wl_surface::WlSurface, Client, DisplayHandle},
|
||||||
},
|
},
|
||||||
utils::{Point, Rectangle, Serial, SERIAL_COUNTER},
|
utils::{Point, Rectangle, Serial, SERIAL_COUNTER},
|
||||||
|
|
@ -1000,7 +1003,10 @@ impl Shell {
|
||||||
dh,
|
dh,
|
||||||
client_should_see_privileged_protocols,
|
client_should_see_privileged_protocols,
|
||||||
);
|
);
|
||||||
let xdg_shell_state = XdgShellState::new::<State>(dh);
|
let xdg_shell_state = XdgShellState::new_with_capabilities::<State>(
|
||||||
|
dh,
|
||||||
|
[WmCapabilities::Fullscreen, WmCapabilities::Maximize],
|
||||||
|
);
|
||||||
let xdg_activation_state = XdgActivationState::new::<State>(dh);
|
let xdg_activation_state = XdgActivationState::new::<State>(dh);
|
||||||
let toplevel_info_state =
|
let toplevel_info_state =
|
||||||
ToplevelInfoState::new(dh, client_should_see_privileged_protocols);
|
ToplevelInfoState::new(dh, client_should_see_privileged_protocols);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue