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
|
|
@ -56,7 +56,7 @@ impl PlaceholderNode {
|
|||
state,
|
||||
node.tl_data().title.borrow().clone(),
|
||||
node.node_client(),
|
||||
ToplevelType::Placeholder,
|
||||
ToplevelType::Placeholder(Some(node.tl_data().identifier.get())),
|
||||
id,
|
||||
slf,
|
||||
),
|
||||
|
|
@ -75,7 +75,7 @@ impl PlaceholderNode {
|
|||
state,
|
||||
String::new(),
|
||||
None,
|
||||
ToplevelType::Placeholder,
|
||||
ToplevelType::Placeholder(None),
|
||||
id,
|
||||
slf,
|
||||
),
|
||||
|
|
|
|||
|
|
@ -16,6 +16,10 @@ pub trait StackedNode: Node {
|
|||
fn stacked_absolute_position_constrains_input(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
fn stacked_is_xdg_popup(&self) -> bool {
|
||||
false
|
||||
}
|
||||
}
|
||||
|
||||
pub trait PinnedNode: StackedNode {
|
||||
|
|
|
|||
|
|
@ -279,7 +279,7 @@ impl ToplevelOpt {
|
|||
|
||||
pub enum ToplevelType {
|
||||
Container,
|
||||
Placeholder,
|
||||
Placeholder(Option<ToplevelIdentifier>),
|
||||
XdgToplevel(Rc<XdgToplevelToplevelData>),
|
||||
XWindow(Rc<XwindowData>),
|
||||
}
|
||||
|
|
@ -288,7 +288,7 @@ impl ToplevelType {
|
|||
pub fn to_window_type(&self) -> WindowType {
|
||||
match self {
|
||||
ToplevelType::Container => window::CONTAINER,
|
||||
ToplevelType::Placeholder => window::PLACEHOLDER,
|
||||
ToplevelType::Placeholder { .. } => window::PLACEHOLDER,
|
||||
ToplevelType::XdgToplevel { .. } => window::XDG_TOPLEVEL,
|
||||
ToplevelType::XWindow { .. } => window::X_WINDOW,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue