Exemple #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)
}
Exemple #2
0
func RunDisplay(display Display) {
	C.wl_display_run((*C.struct_wl_display)(display))
}