Skip to content

Commit

Permalink
Always ignore border width changes.
Browse files Browse the repository at this point in the history
Namely, the number of bits set in the mask sent to a CongfigureWindow
request must be equivalent to the number of values given.

See issue #96 in https://github.com/BurntSushi/wingo for a relevant bug.
  • Loading branch information
BurntSushi committed Sep 24, 2013
1 parent 1a47129 commit 9f9f7ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xwindow/xwindow.go
Expand Up @@ -217,6 +217,10 @@ func (win *Window) Configure(flags, x, y, w, h int,
vals = append(vals, uint32(stackMode))
}

// Nobody should be setting border widths any more.
// We toss it out since `vals` must have length equal to the number
// of bits set in `flags`.
flags &= ^xproto.ConfigWindowBorderWidth
xproto.ConfigureWindow(win.X.Conn(), win.Id, uint16(flags), vals)
}

Expand Down

0 comments on commit 9f9f7ed

Please sign in to comment.