diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2023-08-10 17:17:17 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2023-08-10 17:17:17 +0400 |
| commit | 64610d1e24770857edf99eb4254c0cb06abd8d08 (patch) | |
| tree | 9e8619b352a468cd53faa89fb06d7422a2fd6487 /src | |
| parent | 9126c60b9ba8413d6f0a0beaf79b745190ef3eb9 (diff) | |
| download | niri-64610d1e24770857edf99eb4254c0cb06abd8d08.tar.gz niri-64610d1e24770857edf99eb4254c0cb06abd8d08.tar.bz2 niri-64610d1e24770857edf99eb4254c0cb06abd8d08.zip | |
Unset the minimize capability
Diffstat (limited to 'src')
| -rw-r--r-- | src/niri.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/niri.rs b/src/niri.rs index 66ecbae3..05310840 100644 --- a/src/niri.rs +++ b/src/niri.rs @@ -12,6 +12,7 @@ use smithay::input::{Seat, SeatState}; use smithay::output::Output; use smithay::reexports::calloop::generic::Generic; use smithay::reexports::calloop::{Interest, LoopHandle, LoopSignal, Mode, PostAction}; +use smithay::reexports::wayland_protocols::xdg::shell::server::xdg_toplevel::WmCapabilities; use smithay::reexports::wayland_server::backend::{ClientData, ClientId, DisconnectReason}; use smithay::reexports::wayland_server::protocol::wl_surface::WlSurface; use smithay::reexports::wayland_server::{Display, DisplayHandle}; @@ -65,7 +66,14 @@ impl Niri { let display_handle = display.handle(); let compositor_state = CompositorState::new::<Self>(&display_handle); - let xdg_shell_state = XdgShellState::new::<Self>(&display_handle); + let xdg_shell_state = XdgShellState::new_with_capabilities::<Self>( + &display_handle, + [ + WmCapabilities::Fullscreen, + WmCapabilities::Maximize, + WmCapabilities::WindowMenu, + ], + ); let shm_state = ShmState::new::<Self>(&display_handle, vec![]); let output_manager_state = OutputManagerState::new_with_xdg_output::<Self>(&display_handle); let mut seat_state = SeatState::new(); |
