Skip to content

"undeclared field: 'onFrame'" for X11 Window. #85

Closed
@janEntikan

Description

@janEntikan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions