Starting program: /tmp/demo_input 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/x86_64-linux-gnu/libthread_db.so.1".
wlgui input demo
[wlgui] EventManager created
[xkb] libxkbcommon loaded
[xkb] context created
[wlgui] Wayland initialized
[font] sizeof(FT_FaceRec)=160 offset(glyph)=152 offset(units_per_EM)=136 offset(ascender)=138
[font] file=/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf name=DejaVuSans height=20 valid=TRUE builtin=FALSE ascent=19 descent=5 units_per_EM=2048
[font] sizeof(FT_FaceRec)=160 offset(glyph)=152 offset(units_per_EM)=136 offset(ascender)=138
[font] file=/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf name=DejaVuSans height=14 valid=TRUE builtin=FALSE ascent=13 descent=3 units_per_EM=2048
[wlgui] window created: "wlgui input demo" 640x480
[events] seat name: default
[events] seat capabilities=3
[cursor] surface created: 1x1 hot=(0,0)
[events] pointer attached
[events] keyboard attached
[wlgui] 2 buffers created: 640x480 stride=2560
[events] keyboard keymap format=1 size=38030
[xkb] keymap loaded
[demo] focus in
[demo] mouse enter
[pointer] leave serial=282

Program received signal SIGSEGV, Segmentation fault.
0x00000000004a61cf in SETCURSOR (this=0x7ffff7f9c7c0, ASERIAL=282, ASURFACE=0x0, AHOTSPOTX=0, AHOTSPOTY=0) at wayland_protocol.pas:1333
1333      wl_proxy_marshal(FProxy, _SET_CURSOR, ASerial, ASurface.Proxy, AHotspotX, AHotspotY);
(gdb) bt
#0  0x00000000004a61cf in SETCURSOR (this=0x7ffff7f9c7c0, ASERIAL=282, ASURFACE=0x0, AHOTSPOTX=0, AHOTSPOTY=0) at wayland_protocol.pas:1333
#1  0x0000000000487b9a in WL_POINTER_LEAVE (this=0x7ffff7f9c880, AWLPOINTER=0x7ffff7f9c7c0, ASERIAL=282, ASURFACE=0x7ffff7f9c600)
    at wlgui_events.pas:401
#2  0x00000000004a7a7d in WL_POINTER_LEAVE_INTF (ADATA=0x7ffff7f9c7d8, AWL_POINTER=0x62a510, ASERIAL=282, ASURFACE=0x62a290)
    at wayland_protocol.pas:1741
#3  0x00007ffff7c7b056 in ?? () from /usr/lib/x86_64-linux-gnu/libffi.so.8
#4  0x00007ffff7c78f1c in ?? () from /usr/lib/x86_64-linux-gnu/libffi.so.8
#5  0x00007ffff7c79fe5 in ffi_call () from /usr/lib/x86_64-linux-gnu/libffi.so.8
#6  0x00007ffff7f5a8d8 in ?? () from /usr/lib/x86_64-linux-gnu/libwayland-client.so.0
#7  0x00007ffff7f560dc in ?? () from /usr/lib/x86_64-linux-gnu/libwayland-client.so.0
#8  0x00007ffff7f5745b in wl_display_dispatch_queue_pending () from /usr/lib/x86_64-linux-gnu/libwayland-client.so.0
#9  0x00007ffff7f5789d in wl_display_dispatch_queue_timeout () from /usr/lib/x86_64-linux-gnu/libwayland-client.so.0
#10 0x00007ffff7f5797f in wl_display_dispatch_queue () from /usr/lib/x86_64-linux-gnu/libwayland-client.so.0
#11 0x0000000000480479 in DISPATCHWITHTIMEOUT (this=0x7ffff7f8d1c0, ATIMEOUTMS=10) at wlgui_context.pas:118
#12 0x000000000048102e in PROCESSEVENTS (this=0x7ffff7f9c280) at wlgui_app.pas:242
#13 0x00000000004025cd in main () at demo_input.pas:210
