mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-03 11:22:37 +02:00
xevent: OnWindowCreated.
This commit is contained in:
parent
94a9c7c10a
commit
49c3b6d4fe
6 changed files with 44 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue