1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-24 13:52:55 +03:00

Add focus_change to WindowCallbacks

This commit is contained in:
Jeremy Fitzhardinge 2019-12-28 22:51:55 -08:00 committed by Wez Furlong
parent 9596dfd97f
commit 69ed1e7aed

View File

@ -114,6 +114,9 @@ pub trait WindowCallbacks: Any {
/// Called when the window is resized, or when the dpi has changed
fn resize(&mut self, dimensions: Dimensions) {}
/// Called when window gains/loses focus
fn focus_change(&mut self, focused: bool) {}
/// Called when the window contents need painting.
/// This is used only when the software renderer is enabled (which
/// is the default). When the window is set to opengl mode, the