cli: add commands to inspect the tree
This commit is contained in:
parent
bd04b09171
commit
38d7a60d00
14 changed files with 1072 additions and 8 deletions
|
|
@ -14,6 +14,7 @@ mod run_privileged;
|
|||
pub mod screenshot;
|
||||
mod seat_test;
|
||||
mod set_log_level;
|
||||
mod tree;
|
||||
mod unlock;
|
||||
mod xwayland;
|
||||
|
||||
|
|
@ -22,7 +23,7 @@ use {
|
|||
cli::{
|
||||
clients::ClientsArgs, color_management::ColorManagementArgs,
|
||||
damage_tracking::DamageTrackingArgs, idle::IdleCmd, input::InputArgs, randr::RandrArgs,
|
||||
reexec::ReexecArgs, xwayland::XwaylandArgs,
|
||||
reexec::ReexecArgs, tree::TreeArgs, xwayland::XwaylandArgs,
|
||||
},
|
||||
compositor::start_compositor,
|
||||
format::{Format, ref_formats},
|
||||
|
|
@ -89,6 +90,8 @@ pub enum Cmd {
|
|||
Reexec(ReexecArgs),
|
||||
/// Inspect/manipulate the connected clients.
|
||||
Clients(ClientsArgs),
|
||||
/// Inspect the surface tree.
|
||||
Tree(TreeArgs),
|
||||
#[cfg(feature = "it")]
|
||||
RunTests,
|
||||
}
|
||||
|
|
@ -248,6 +251,7 @@ pub fn main() {
|
|||
Cmd::Xwayland(a) => xwayland::main(cli.global, a),
|
||||
Cmd::ColorManagement(a) => color_management::main(cli.global, a),
|
||||
Cmd::Clients(a) => clients::main(cli.global, a),
|
||||
Cmd::Tree(a) => tree::main(cli.global, a),
|
||||
#[cfg(feature = "it")]
|
||||
Cmd::RunTests => crate::it::run_tests(),
|
||||
Cmd::Reexec(a) => reexec::main(cli.global, a),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue