seat: keep track of focus serials
This commit is contained in:
parent
eff490a653
commit
324540c41e
5 changed files with 26 additions and 13 deletions
|
|
@ -212,7 +212,7 @@ impl TabletTool {
|
|||
});
|
||||
if state == ToolButtonState::Pressed {
|
||||
if let Some(node) = n.get_focus_node(self.tablet.seat.id) {
|
||||
self.tablet.seat.focus_node(node);
|
||||
self.tablet.seat.focus_node_with_serial(node, serial.get());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -260,7 +260,7 @@ impl TabletTool {
|
|||
if let Some(changes) = changes {
|
||||
if changes.down == Some(true) {
|
||||
if let Some(node) = n.get_focus_node(self.tablet.seat.id) {
|
||||
self.tablet.seat.focus_node(node);
|
||||
self.tablet.seat.focus_node_with_serial(node, serial.get());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue