xevent: OnWindowCreated.

This commit is contained in:
Miroslav Šedivý 2021-01-12 00:09:43 +01:00
parent 94a9c7c10a
commit 49c3b6d4fe
6 changed files with 44 additions and 0 deletions

View file

@ -133,6 +133,15 @@ func (ws *WebSocketManagerCtx) Start() {
ws.logger.Warn().Err(err).Msg("could not sync clipboard")
}
})
ws.desktop.OnWindowCreated(func(window uint32, name string, role string) {
// TODO: Implement.
ws.logger.Info().
Uint32("window", window).
Str("name", name).
Str("role", role).
Msg("created new window")
})
}
func (ws *WebSocketManagerCtx) Shutdown() error {