1
0
Fork 0
forked from wry/wry

seat: after keymap change, only send keymap to focused surface

This commit is contained in:
Julian Orth 2024-04-12 14:56:54 +02:00
parent 8d43eebc3d
commit 225995eb2f
5 changed files with 45 additions and 30 deletions

View file

@ -1399,7 +1399,7 @@ impl Node for WlSurface {
seat.scroll_surface(&self, event);
}
fn node_on_focus(self: Rc<Self>, seat: &Rc<WlSeatGlobal>) {
fn node_on_focus(self: Rc<Self>, seat: &WlSeatGlobal) {
if let Some(tl) = self.toplevel.get() {
tl.tl_data().focus_node.insert(seat.id(), self.clone());
tl.tl_on_activate();