func ewmhDesktopNames() { names := make([]string, len(Heads.Workspaces.Wrks)) for i, wrk := range Heads.Workspaces.Wrks { names[i] = wrk.Name } ewmh.DesktopNamesSet(X, names) }
func ewmhDesktopNames() { names := make([]string, len(Heads.Workspaces.Wrks)) for i, wrk := range Heads.Workspaces.Wrks { names[i] = wrk.Name } ewmh.DesktopNamesSet(X, names) event.Notify(event.ChangedWorkspaceNames{}) }
func (wingo *wingoState) ewmhDesktopNames() { if wingo == nil || wingo.heads == nil { return // still starting up } names := make([]string, len(wingo.heads.Workspaces())) for i, wrk := range wingo.heads.Workspaces() { if len(strings.TrimSpace(wrk.String())) == 0 { names[i] = fmt.Sprintf("Default workspace %d", i) } else { names[i] = wrk.String() } } ewmh.DesktopNamesSet(X, names) }