Skip to content

Commit

Permalink
Merge pull request #6 from syohex/i3-issue
Browse files Browse the repository at this point in the history
Apply workaround for window managers which don't support _NET_FRAME_EXTENTS
  • Loading branch information
syohex committed Jan 27, 2016
2 parents ca1a82d + 86524bb commit f9a3523
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/byzanz-window/byzanz-window.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f9a3523

Please sign in to comment.