-
Notifications
You must be signed in to change notification settings - Fork 9
binding KeyboardListener results in a segfault #2
Comments
Can you give me a hint where precisely the problem is and what would have to be done about it? |
Wayland message arguments can have one of a number of types, as detailed in the wayland documentation. These bindings use that information to properly marshal data to Haskell types - e.g. an The But the But now the C structure that we pass to the wayland library (notice that the KeyboardListener is Storable, a fact that we don't want the user to exploit but can't really hide either AFAIA) has the wrong length (since it's missing the The solution is to either add that field to the C struct we store and set it to null (ie. properly disable interfacing with messages which have an The former would simply be done by remembering that there is some disabled message in an interface, and then pass a nullFunPtr in Graphics/Wayland/Scanner.chs. The latter would consist of, if possible, use heuristics to figure out how to present the data neatly (e.g. the |
Thanks! |
me being lazy and ignoring "array" type arguments has turned against me: the KeyboardListener now doesn't have the right number of entries, causing a segfault when trying to bind to it.
The text was updated successfully, but these errors were encountered: