1
0
Fork 0
forked from wry/wry

tree: add Node::node_make_visible

This commit is contained in:
Julian Orth 2025-07-18 20:01:27 +02:00
parent 289c201a69
commit 4bfa9fb7fc
15 changed files with 147 additions and 34 deletions

View file

@ -359,6 +359,13 @@ impl Node for WorkspaceNode {
renderer.render_workspace(self, x, y);
}
fn node_make_visible(self: Rc<Self>) {
if self.is_dummy {
return;
}
self.state.show_workspace2(None, &self);
}
fn node_on_pointer_focus(&self, seat: &Rc<WlSeatGlobal>) {
// log::info!("workspace focus");
seat.pointer_cursor().set_known(KnownCursor::Default);
@ -434,6 +441,10 @@ impl ContainingNode for WorkspaceNode {
fn cnode_workspace(self: Rc<Self>) -> Rc<WorkspaceNode> {
self
}
fn cnode_make_visible(self: Rc<Self>, _child: &dyn Node) {
self.node_make_visible();
}
}
pub struct WsMoveConfig {