Add focus tracking for Wayland
This commit is contained in:
1 parent
6558230c9f
commit
71acd7d2a9
1 file changed
+2
-1
@@ -302,7 +302,8 @@ impl WaylandWindowInner {
|
||||
.key_event(&key_event, &Window::Wayland(WaylandWindow(self.window_id)));
|
||||
}
|
||||
KeyboardEvent::Modifiers { modifiers } => self.modifiers = modifiers,
|
||||
KeyboardEvent::Enter { .. } | KeyboardEvent::Leave { .. } => {}
|
||||
KeyboardEvent::Enter { .. } => self.callbacks.focus_change(true),
|
||||
KeyboardEvent::Leave { .. } => self.callbacks.focus_change(false),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user