config: add XWayland enabled option
This commit is contained in:
parent
4ca67772b3
commit
49274fb1c6
13 changed files with 85 additions and 10 deletions
|
|
@ -1182,6 +1182,10 @@ impl ConfigClient {
|
|||
self.send(&ClientMessage::SetXScalingMode { mode })
|
||||
}
|
||||
|
||||
pub fn set_x_wayland_enabled(&self, enabled: bool) {
|
||||
self.send(&ClientMessage::SetXWaylandEnabled { enabled })
|
||||
}
|
||||
|
||||
pub fn set_vrr_mode(&self, connector: Option<Connector>, mode: VrrMode) {
|
||||
self.send(&ClientMessage::SetVrrMode { connector, mode })
|
||||
}
|
||||
|
|
|
|||
|
|
@ -831,6 +831,9 @@ pub enum ClientMessage<'a> {
|
|||
seat: Seat,
|
||||
mode: FallbackOutputMode,
|
||||
},
|
||||
SetXWaylandEnabled {
|
||||
enabled: bool,
|
||||
},
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue