app: ensure SetDriver is called before sending events

This used to not matter, but a follow-up change will require a valid
driver to process events.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2022-01-04 15:46:53 +01:00
parent 787295a6e8
commit 72b2f2c1bf
2 changed files with 3 additions and 4 deletions
+2 -2
View File
@@ -243,11 +243,11 @@ func newWLWindow(callbacks *callbacks, options []Option) error {
go func() {
defer d.destroy()
defer w.destroy()
w.w.SetDriver(w)
// Finish and commit setup from createNativeWindow.
w.Configure(options)
C.wl_surface_commit(w.surf)
w.w.SetDriver(w)
if err := w.loop(); err != nil {
panic(err)
}