1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-23 15:04:36 +03:00

Add focus tracking for Wayland

This commit is contained in:
Jeremy Fitzhardinge 2019-12-28 23:11:17 -08:00 committed by Wez Furlong
parent 6558230c9f
commit 71acd7d2a9

View File

@ -302,7 +302,8 @@ impl WaylandWindowInner {
.key_event(&key_event, &Window::Wayland(WaylandWindow(self.window_id))); .key_event(&key_event, &Window::Wayland(WaylandWindow(self.window_id)));
} }
KeyboardEvent::Modifiers { modifiers } => self.modifiers = modifiers, KeyboardEvent::Modifiers { modifiers } => self.modifiers = modifiers,
KeyboardEvent::Enter { .. } | KeyboardEvent::Leave { .. } => {} KeyboardEvent::Enter { .. } => self.callbacks.focus_change(true),
KeyboardEvent::Leave { .. } => self.callbacks.focus_change(false),
} }
} }