Setup proper WM lifecycle and xcb bindings
This commit is contained in:
@@ -1,15 +1,14 @@
|
||||
open Ctypes
|
||||
open Foreign
|
||||
|
||||
type t
|
||||
|
||||
let typ : t structure typ = structure "xcb_connection_t"
|
||||
|
||||
let _xcb_connect =
|
||||
foreign "xcb_connect" (string_opt @-> ptr int @-> returning (ptr typ))
|
||||
foreign "xcb_connect"
|
||||
(string_opt @-> ptr int @-> returning (ptr Types.Connection.typ))
|
||||
|
||||
let disconnect = foreign "xcb_disconnect" (ptr typ @-> returning void)
|
||||
let flush = foreign "xcb_flush" (ptr typ @-> returning int)
|
||||
let disconnect =
|
||||
foreign "xcb_disconnect" (ptr Types.Connection.typ @-> returning void)
|
||||
|
||||
let flush = foreign "xcb_flush" (ptr Types.Connection.typ @-> returning int)
|
||||
|
||||
let connect () =
|
||||
let screen = allocate int 0 in
|
||||
|
||||
Reference in New Issue
Block a user