@@ -374,7 +374,7 @@ foreign xlib {
374374 SetSelectionOwner :: proc (
375375 display: ^Display,
376376 selection: Atom,
377- owber : Window,
377+ owner : Window,
378378 time: Time,
379379 ) ---
380380 GetSelectionOwner :: proc (
@@ -1030,6 +1030,7 @@ foreign xlib {
10301030 Pending :: proc (display: ^Display) -> i32 ---
10311031 NextEvent :: proc (display: ^Display, event: ^XEvent) ---
10321032 PeekEvent :: proc (display: ^Display, event: ^XEvent) ---
1033+ FilterEvent :: proc (event: ^XEvent, window: Window) -> b32 ---
10331034 GetEventData :: proc (display: ^Display, cookie: ^XGenericEventCookie) -> b32 ---
10341035 FreeEventData :: proc (display: ^Display, cookie: ^XGenericEventCookie) ---
10351036 // Selecting events using a predicate procedure
@@ -1697,6 +1698,24 @@ foreign xlib {
16971698 res_class: cstring ,
16981699 ) -> XIM ---
16991700 SetLocaleModifiers :: proc (modifiers: cstring ) -> cstring ---
1701+ CreateIC :: proc (
1702+ im: XIM,
1703+ #c_vararg args: ..any ,
1704+ ) -> XIC ---
1705+ SetICFocus :: proc (
1706+ ic: XIC,
1707+ ) ---
1708+ UnsetICFocus :: proc (
1709+ ic: XIC,
1710+ ) ---
1711+ SetICValues :: proc (
1712+ ic: XIC,
1713+ #c_vararg args: ..any ,
1714+ ) -> cstring ---
1715+ VaCreateNestedList :: proc (
1716+ unused: i32 ,
1717+ #c_vararg args: ..any ,
1718+ ) -> XVaNestedList ---
17001719}
17011720
17021721@ (default_calling_convention=" c" )
@@ -2046,4 +2065,12 @@ foreign xlib {
20462065 num: u32 ,
20472066 xkb: XkbDescPtr,
20482067 ) -> Status ---
2068+ Xutf8LookupString :: proc (
2069+ ic: XIC,
2070+ event: ^XKeyPressedEvent,
2071+ buffer_return: ^cstring ,
2072+ bytes_buffer: i32 ,
2073+ keysym_return: ^KeySym,
2074+ status_return: ^LookupStringStatus,
2075+ ) -> i32 ---
20492076}
0 commit comments