From 86524bb9e707c1956250a9d827279f031c6e1273 Mon Sep 17 00:00:00 2001 From: Syohei YOSHIDA Date: Wed, 27 Jan 2016 10:50:39 +0900 Subject: [PATCH] Apply workaround for window managers which don't support _NET_FRAME_EXTENTS --- cmd/byzanz-window/byzanz-window.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/byzanz-window/byzanz-window.go b/cmd/byzanz-window/byzanz-window.go index a6d8935..4519e05 100644 --- a/cmd/byzanz-window/byzanz-window.go +++ b/cmd/byzanz-window/byzanz-window.go @@ -117,7 +117,10 @@ func getWindowInformation(winid int) (*byzanzArg, error) { match = posRe.FindStringSubmatch(string(xproperty)) if match == nil { - return nil, errors.New(`can't find 'position'`) + // Some windows managers, such as i3, don't support _NET_FRAME_EXTENTS yet. + // Ignore window frame information for such window managers(issue #5) and not + // capture window frame. + match = []string{"0", "0", "0", "0", "0"} } left, err := strconv.ParseInt(match[1], 10, 32)