1
0
Fork 0
forked from wry/wry

config: add XWayland enabled option

This commit is contained in:
khyperia 2026-02-17 10:18:20 +01:00 committed by Julian Orth
parent 4ca67772b3
commit 49274fb1c6
13 changed files with 85 additions and 10 deletions

View file

@ -2,6 +2,13 @@
use serde::{Deserialize, Serialize};
/// Sets whether Xwayland is enabled
///
/// The default is `true`.
pub fn set_x_wayland_enabled(enabled: bool) {
get!().set_x_wayland_enabled(enabled)
}
/// The scaling mode of X windows.
#[derive(Serialize, Deserialize, Copy, Clone, Debug, Eq, PartialEq, Hash, Default)]
pub struct XScalingMode(pub u32);