"undeclared field: 'onFrame'" for X11 Window.
janEntikan opened this issue · 1 comments
janEntikan commented
In src/windy/platforms/x11.nim the Window is missing the onFrame field. Here's a diff of my fix:
--- a/src/windy/platforms/linux/x11.nim
+++ b/src/windy/platforms/linux/x11.nim
@@ -5,6 +5,7 @@ type
Window* = ref object
onCloseRequest*: Callback
+ onFrame*: Callback
onMove*: Callback
onResize*: Callback
onFocusChange*: Callback
@@ -782,6 +783,8 @@ proc pollEvents(window: Window) =
window.prevSize = ev.configure.size
if window.onResize != nil:
window.onResize()
+ if window.onFrame != nil:
+ window.onFrame()
of xeMotion:
window.mousePrevPos = window.mousePos