Add focus tracking for Wayland

This commit is contained in:
Jeremy Fitzhardinge authored and Wez Furlong committed 2019-12-29 16:58:15 -08:00
1 parent 6558230c9f
commit 71acd7d2a9
1 file changed
+2 -1
+2 -1
View File
@@ -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),
}
}