diff --git a/cmd/byzanz-window/byzanz-window.go b/cmd/byzanz-window/byzanz-window.go index 115c959..a6d8935 100644 --- a/cmd/byzanz-window/byzanz-window.go +++ b/cmd/byzanz-window/byzanz-window.go @@ -249,7 +249,7 @@ func record(arg *byzanzArg) error { var xrectselRe = regexp.MustCompile(`(\d+)x(\d+)\+(\d+)\+(\d+)`) func getSelectedRectangle() (*byzanzArg, error) { - rect, err := byzanz.SelectWindow() + rect, err := byzanz.SelectRectangle() if err != nil { return nil, err } diff --git a/select_rectangle_linux.go b/select_rectangle_linux.go index 5ccf839..8b746f6 100644 --- a/select_rectangle_linux.go +++ b/select_rectangle_linux.go @@ -111,7 +111,7 @@ type Rectangle struct { Y int } -func SelectWindow() (*Rectangle, error) { +func SelectRectangle() (*Rectangle, error) { var tmp C.struct_rectangle ret := int(C.select_region((*C.struct_rectangle)(unsafe.Pointer(&tmp))))