app/internal/wm: implement ViewEvent for X11

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
This commit is contained in:
Chris Waldon
2021-08-19 14:10:21 -04:00
committed by Elias Naur
parent f475087296
commit ae3103e180
2 changed files with 9 additions and 1 deletions
+2
View File
@@ -690,8 +690,10 @@ func newX11Window(gioWin Callbacks, opts *Options) error {
go func() {
w.w.SetDriver(w)
w.w.Event(ViewEvent{Display: unsafe.Pointer(dpy), Window: uintptr(win)})
w.setStage(system.StageRunning)
w.loop()
w.w.Event(ViewEvent{})
w.destroy()
}()
return nil