Noesis / Managed

NoesisGUI Managed SDK
Other
94 stars 14 forks source link

displays/x11: fix marshal field #10

Closed Cpasjuste closed 1 year ago

Cpasjuste commented 1 year ago

This fix an x11 display crash on ubuntu 22.04 (at least) that is present since v 3.1.2 :

Unhandled exception. System.TypeLoadException: Cannot marshal field 'cursor' of type 'XSetWindowAttributes': Invalid managed/unmanaged type combination (Marshaling to and from COM interface pointers isn't supported).

Please note that i'm not sure if it's the right way to fix it, but it seems to works fine here.

s-fernandez-v commented 1 year ago

You were right, the cursor field needed to be IntPtr. Thanks a lot for the report.