aboutsummaryrefslogtreecommitdiff
path: root/src/niri.rs
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2023-09-26 13:44:37 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2023-09-26 13:45:03 +0400
commit80928632ba38210242832e316b57e2e153da7efd (patch)
tree2ed62ffc89913f060dc4633b3f75aa7ff1740540 /src/niri.rs
parentdc10e464ad3bd95007873875bf44e9280392e15a (diff)
downloadniri-80928632ba38210242832e316b57e2e153da7efd.tar.gz
niri-80928632ba38210242832e316b57e2e153da7efd.tar.bz2
niri-80928632ba38210242832e316b57e2e153da7efd.zip
Add prefer-no-csd option
Diffstat (limited to 'src/niri.rs')
-rw-r--r--src/niri.rs4
1 files changed, 4 insertions, 0 deletions
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::<State>(&display_handle);
let layer_shell_state = WlrLayerShellState::new::<State>(&display_handle);
let shm_state = ShmState::new::<State>(&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,