Пример #1
0
func ewmhDesktopGeometry() {
	rgeom := xwindow.RootGeometry(X)

	ewmh.DesktopGeometrySet(X,
		&ewmh.DesktopGeometry{
			Width:  rgeom.Width(),
			Height: rgeom.Height(),
		})
}
Пример #2
0
// ewmhDesktopGeometry is another totally useless property. Christ.
func (wingo *wingoState) ewmhDesktopGeometry() {
	rootGeom, err := wingo.root.Geometry()
	if err != nil {
		logger.Error.Printf("Could not get ROOT window geometry: %s", err)
		panic("")
	}

	ewmh.DesktopGeometrySet(X,
		&ewmh.DesktopGeometry{
			Width:  rootGeom.Width(),
			Height: rootGeom.Height(),
		})
}