Skip to content

Commit

Permalink
cast to unsafe.Pointer first
Browse files Browse the repository at this point in the history
  • Loading branch information
dweymouth committed Jun 8, 2024
1 parent 1baf986 commit e42783d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/driver/glfw/window_wayland.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
package glfw

import (
"unsafe"

"fyne.io/fyne/v2/driver"
)

Expand All @@ -19,8 +21,8 @@ func (w *window) RunNative(f func(any) error) error {
done := make(chan struct{})
runOnMain(func() {
err = f(driver.WaylandWindowContext{
WaylandSurface: uintptr(w.view().GetWaylandWindow()),
EGLSurface: uintptr(w.view().GetEGLSurface()),
WaylandSurface: uintptr(unsafe.Pointer(w.view().GetWaylandWindow())),
EGLSurface: uintptr(unsafe.Pointer(w.view().GetEGLSurface())),
})
close(done)
})
Expand Down

0 comments on commit e42783d

Please sign in to comment.