Support linux systrays, of sorts...

This commit is contained in:
Lea Anthony
2024-03-06 16:59:13 -06:00
committed by Travis McLane
parent 12e2e2101a
commit 161444107a
26 changed files with 662 additions and 503 deletions
@@ -264,6 +264,12 @@ func (w *linuxWebviewWindow) run() {
w.execJS(js)
}
})
w.parent.On(events.Linux.WindowFocusIn, func(e *WindowEvent) {
w.parent.emit(events.Common.WindowFocus)
})
w.parent.On(events.Linux.WindowFocusOut, func(e *WindowEvent) {
w.parent.emit(events.Common.WindowLostFocus)
})
w.parent.On(events.Linux.WindowDeleteEvent, func(e *WindowEvent) {
w.parent.emit(events.Common.WindowClosing)
})