From 80928632ba38210242832e316b57e2e153da7efd Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Tue, 26 Sep 2023 13:44:37 +0400 Subject: Add prefer-no-csd option --- src/niri.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/niri.rs') diff --git a/src/niri.rs b/src/niri.rs index 58952a35..ea061bc3 100644 --- a/src/niri.rs +++ b/src/niri.rs @@ -54,6 +54,7 @@ use smithay::wayland::output::OutputManagerState; use smithay::wayland::pointer_gestures::PointerGesturesState; use smithay::wayland::presentation::PresentationState; use smithay::wayland::shell::wlr_layer::{Layer, WlrLayerShellState}; +use smithay::wayland::shell::xdg::decoration::XdgDecorationState; use smithay::wayland::shell::xdg::XdgShellState; use smithay::wayland::shm::ShmState; use smithay::wayland::socket::ListeningSocketSource; @@ -94,6 +95,7 @@ pub struct Niri { // Smithay state. pub compositor_state: CompositorState, pub xdg_shell_state: XdgShellState, + pub xdg_decoration_state: XdgDecorationState, pub layer_shell_state: WlrLayerShellState, pub shm_state: ShmState, pub output_manager_state: OutputManagerState, @@ -213,6 +215,7 @@ impl Niri { &display_handle, [WmCapabilities::Fullscreen], ); + let xdg_decoration_state = XdgDecorationState::new::(&display_handle); let layer_shell_state = WlrLayerShellState::new::(&display_handle); let shm_state = ShmState::new::(&display_handle, vec![]); let output_manager_state = @@ -563,6 +566,7 @@ impl Niri { compositor_state, xdg_shell_state, + xdg_decoration_state, layer_shell_state, shm_state, output_manager_state, -- cgit