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) }
func DestroyDisplay(display Display) { C.wl_display_destroy((*C.struct_wl_display)(display)) }