Exemplo n.º 1
0
func createWindow(c *xgb.Conn) {
	win := c.NewId()
	mask := uint32(xgb.CWEventMask)
	values := []uint32{1, xgb.EventMaskKeyPress}

	c.CreateWindow(
		0,
		win,
		c.DefaultScreen().Root,
		0,
		0,
		1,
		1,
		0,
		xgb.WindowClassInputOutput,
		0,
		mask,
		values)

	c.MapWindow(win)
}