atagen

monolith

public
Star0
Watch0

Commit 11a05bd1f4eb

tarball

atagen <boss@atagen.co>2026-10-19 07:59 UTC

1 file changed+5-1
xdg: advertise only fullscreen in wm_capabilities

monolith never honours maximize, minimize or the window menu, so clients that saw them drew buttons and menu entries that did nothing.
Modified file: crates/monolith/src/globals.rs+5 additions−1 deletions
@@ -7,6 +7,7 @@ use monolith_protocols::toplevel::ForeignToplevelState;
77 use monolith_protocols::workspace::WorkspaceState;
88 use monolith_render_vk::VulkanRenderer;
99 use smithay::backend::renderer::ImportDma;
10+use smithay::reexports::wayland_protocols::xdg::shell::server::xdg_toplevel::WmCapabilities;
1011 use smithay::reexports::wayland_server::DisplayHandle;
1112 use smithay::wayland::compositor::CompositorState;
1213 use smithay::wayland::cursor_shape::CursorShapeManagerState;
@@ -79,7 +80,10 @@ impl Protocols {
7980 let primary_selection_state = PrimarySelectionState::new::<State>(dh);
8081 Self {
8182 compositor_state: CompositorState::new::<State>(dh),
82- xdg_shell_state: XdgShellState::new::<State>(dh),
83+ xdg_shell_state: XdgShellState::new_with_capabilities::<State>(
84+ dh,
85+ [WmCapabilities::Fullscreen],
86+ ),
8387 layer_shell_state: WlrLayerShellState::new::<State>(dh),
8488 output_capture_source_state: OutputCaptureSourceState::new::<State>(dh),
8589 toplevel_capture_source_state: ToplevelCaptureSourceState::new::<State>(dh),