From c99126d2c786dcc368d667bb1247bc2e75b42545 Mon Sep 17 00:00:00 2001 From: Victoria Brekenfeld Date: Wed, 22 Nov 2023 17:56:13 +0100 Subject: [PATCH] shell: Don't advertise minimize/windowmenu capabilities --- src/shell/mod.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/shell/mod.rs b/src/shell/mod.rs index 37fdc314..0bbc9644 100644 --- a/src/shell/mod.rs +++ b/src/shell/mod.rs @@ -20,7 +20,10 @@ use smithay::{ }, output::Output, 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}, }, utils::{Point, Rectangle, Serial, SERIAL_COUNTER}, @@ -1000,7 +1003,10 @@ impl Shell { dh, client_should_see_privileged_protocols, ); - let xdg_shell_state = XdgShellState::new::(dh); + let xdg_shell_state = XdgShellState::new_with_capabilities::( + dh, + [WmCapabilities::Fullscreen, WmCapabilities::Maximize], + ); let xdg_activation_state = XdgActivationState::new::(dh); let toplevel_info_state = ToplevelInfoState::new(dh, client_should_see_privileged_protocols);