mirror of
https://github.com/wavetermdev/wails.git
synced 2026-08-05 13:53:43 -07:00
Support linux systrays, of sorts...
This commit is contained in:
committed by
Travis McLane
parent
12e2e2101a
commit
161444107a
@@ -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)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user