You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: screen.go
    path of file: ./repos/wails/v2/internal/frontend/desktop/linux
    
    the code of the file until where you have to start completion: //go:build linux
// +build linux

package linux

/*
#cgo lin
    
func GetAllScreens(window *C.GtkWindow) ([]Screen, error) {
	if window == nil {
		return nil, errors.New("window is nil, cannot perform screen operations")
	}
	var wg sync.WaitGroup
	var screens []Screen
	wg.Add(1)
	invokeOnMainThread(func() {
		numMonitors := C.GetNMonitors(window)
		for i := 0; i < int(numMonitors); i++ {
			cMonitor := C.GetNThMonitor(C.int(i), window)

			screen := Screen{
				IsCurrent: cMonitor.isCurrent == 1,
				IsPrimary: cMonitor.isPrimary == 1,
				Width:     int(cMonitor.width),
				Height:    int(cMonitor.height),

				Size: frontend.ScreenSize{
					Width:  int(cMonitor.width),
					Height: int(cMonitor.height),
				},
				PhysicalSize: frontend.ScreenSize{
					Width:  int(cMonitor.width * cMonitor.scale),
					Height: int(cMonitor.height * cMonitor.scale),
				},
			}
			screens = append(screens, screen)
		}

		wg.Done()
	})
	wg.Wait()
	return screens, nil
}