config: add Window
This commit is contained in:
parent
ab095b89cf
commit
9977f9dfdf
19 changed files with 1172 additions and 203 deletions
|
|
@ -15,6 +15,7 @@ use {
|
|||
ColorSpace, Connector, DrmDevice, Format, GfxApi, TearingMode, TransferFunction,
|
||||
Transform, VrrMode, connector_type::ConnectorType,
|
||||
},
|
||||
window::{Window, WindowType},
|
||||
xwayland::XScalingMode,
|
||||
},
|
||||
serde::{Deserialize, Serialize},
|
||||
|
|
@ -576,6 +577,93 @@ pub enum ClientMessage<'a> {
|
|||
ClientIsXwayland {
|
||||
client: Client,
|
||||
},
|
||||
WindowExists {
|
||||
window: Window,
|
||||
},
|
||||
GetWindowClient {
|
||||
window: Window,
|
||||
},
|
||||
GetWorkspaceWindow {
|
||||
workspace: Workspace,
|
||||
},
|
||||
GetSeatKeyboardWindow {
|
||||
seat: Seat,
|
||||
},
|
||||
SeatFocusWindow {
|
||||
seat: Seat,
|
||||
window: Window,
|
||||
},
|
||||
GetWindowTitle {
|
||||
window: Window,
|
||||
},
|
||||
GetWindowType {
|
||||
window: Window,
|
||||
},
|
||||
GetWindowId {
|
||||
window: Window,
|
||||
},
|
||||
GetWindowIsVisible {
|
||||
window: Window,
|
||||
},
|
||||
GetWindowParent {
|
||||
window: Window,
|
||||
},
|
||||
GetWindowWorkspace {
|
||||
window: Window,
|
||||
},
|
||||
GetWindowChildren {
|
||||
window: Window,
|
||||
},
|
||||
GetWindowSplit {
|
||||
window: Window,
|
||||
},
|
||||
SetWindowSplit {
|
||||
window: Window,
|
||||
axis: Axis,
|
||||
},
|
||||
GetWindowMono {
|
||||
window: Window,
|
||||
},
|
||||
SetWindowMono {
|
||||
window: Window,
|
||||
mono: bool,
|
||||
},
|
||||
WindowMove {
|
||||
window: Window,
|
||||
direction: Direction,
|
||||
},
|
||||
CreateWindowSplit {
|
||||
window: Window,
|
||||
axis: Axis,
|
||||
},
|
||||
WindowClose {
|
||||
window: Window,
|
||||
},
|
||||
GetWindowFloating {
|
||||
window: Window,
|
||||
},
|
||||
SetWindowFloating {
|
||||
window: Window,
|
||||
floating: bool,
|
||||
},
|
||||
SetWindowWorkspace {
|
||||
window: Window,
|
||||
workspace: Workspace,
|
||||
},
|
||||
SetWindowFullscreen {
|
||||
window: Window,
|
||||
fullscreen: bool,
|
||||
},
|
||||
GetWindowFullscreen {
|
||||
window: Window,
|
||||
},
|
||||
GetWindowFloatPinned {
|
||||
window: Window,
|
||||
},
|
||||
SetWindowFloatPinned {
|
||||
window: Window,
|
||||
pinned: bool,
|
||||
},
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
|
|
@ -748,6 +836,54 @@ pub enum Response {
|
|||
ClientIsXwayland {
|
||||
is_xwayland: bool,
|
||||
},
|
||||
WindowExists {
|
||||
exists: bool,
|
||||
},
|
||||
GetWindowClient {
|
||||
client: Client,
|
||||
},
|
||||
GetSeatKeyboardWindow {
|
||||
window: Window,
|
||||
},
|
||||
GetWorkspaceWindow {
|
||||
window: Window,
|
||||
},
|
||||
GetWindowParent {
|
||||
window: Window,
|
||||
},
|
||||
GetWindowChildren {
|
||||
windows: Vec<Window>,
|
||||
},
|
||||
GetWindowTitle {
|
||||
title: String,
|
||||
},
|
||||
GetWindowType {
|
||||
kind: WindowType,
|
||||
},
|
||||
GetWindowId {
|
||||
id: String,
|
||||
},
|
||||
GetWindowWorkspace {
|
||||
workspace: Workspace,
|
||||
},
|
||||
GetWindowFloating {
|
||||
floating: bool,
|
||||
},
|
||||
GetWindowSplit {
|
||||
axis: Axis,
|
||||
},
|
||||
GetWindowMono {
|
||||
mono: bool,
|
||||
},
|
||||
GetWindowFullscreen {
|
||||
fullscreen: bool,
|
||||
},
|
||||
GetWindowFloatPinned {
|
||||
pinned: bool,
|
||||
},
|
||||
GetWindowIsVisible {
|
||||
visible: bool,
|
||||
},
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue