Exemplo n.º 1
0
func wayland() {
	display = initDisplay()

	event_loop = C.wl_display_get_event_loop(display)

	compositorInit(display)

	shmInit(display)

	seatInit(display)

	shellInit(display)

	xdgShellInit(display)

	xserverInit(display)

	fmt.Println("Wayland chrome")
	println("start running...")

	C.wl_display_run(display)

	C.wl_display_destroy(display)
}
Exemplo n.º 2
0
func DestroyDisplay(display Display) {
	C.wl_display_destroy((*C.struct_wl_display)(display))
}