Remove disabled backends

This commit is contained in:
Unrud 2022-02-21 22:30:28 +01:00
parent 89131db79b
commit 2211b8a662
7 changed files with 23 additions and 88 deletions

View file

@ -50,6 +50,10 @@ type x11Backend struct {
scrollHorizontal, scrollVertical int
}
func init() {
RegisterBackend("X11", InitX11Backend, 0)
}
func InitX11Backend() (Backend, error) {
sessionType := os.Getenv("XDG_SESSION_TYPE")
if sessionType != "" && sessionType != "x11" {