tree: focus toplevel when clicking on floater
This commit is contained in:
parent
2445226cbe
commit
1006de9ccf
1 changed files with 7 additions and 2 deletions
|
|
@ -10,8 +10,8 @@ use {
|
|||
state::State,
|
||||
text::{self, TextTexture},
|
||||
tree::{
|
||||
walker::NodeVisitor, ContainingNode, FindTreeResult, FoundNode, Node, NodeId,
|
||||
StackedNode, ToplevelNode, WorkspaceNode,
|
||||
walker::NodeVisitor, ContainingNode, Direction, FindTreeResult, FoundNode, Node,
|
||||
NodeId, StackedNode, ToplevelNode, WorkspaceNode,
|
||||
},
|
||||
utils::{
|
||||
clonecell::CloneCell, copyhashmap::CopyHashMap, double_click_state::DoubleClickState,
|
||||
|
|
@ -490,6 +490,11 @@ impl Node for FloatNode {
|
|||
if state != KeyState::Pressed {
|
||||
return;
|
||||
}
|
||||
if seat_data.op_type == OpType::Move {
|
||||
if let Some(tl) = self.child.get() {
|
||||
tl.node_do_focus(seat, Direction::Unspecified);
|
||||
}
|
||||
}
|
||||
if seat_data
|
||||
.double_click_state
|
||||
.click(&self.state, time_usec, seat_data.x, seat_data.y)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue