Function deskulpt::setup::listen_to_windows

source ยท
pub(crate) fn listen_to_windows(window: &Window, event: &WindowEvent)
Expand description

Listen to window events.

This is to be initialized with builder.on_window_event(listen_to_windows) on the application builder instance. It prevents the manager window from closing when the close button is clicked, but only hide it instead.