summaryrefslogtreecommitdiff
path: root/xinerama
diff options
context:
space:
mode:
authoraarzilli <[email protected]>2014-05-02 15:09:23 +0200
committeraarzilli <[email protected]>2014-05-02 15:09:23 +0200
commitcdbc8241c4be92fd4fbb6b7b819e84dce4a06850 (patch)
tree46fa3d240fa2e2e4704c972f814ad94e4bc6ce72 /xinerama
parentefcb6d44d2722be3a77fe5292f5bfd5e73ed7e48 (diff)
Fix Issue #21: automatic calculation of alignment padding after lists
Diffstat (limited to 'xinerama')
-rw-r--r--xinerama/xinerama.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/xinerama/xinerama.go b/xinerama/xinerama.go
index 28410c6..75c773c 100644
--- a/xinerama/xinerama.go
+++ b/xinerama/xinerama.go
@@ -90,7 +90,7 @@ func (v ScreenInfo) Bytes() []byte {
xgb.Put16(buf[b:], v.Height)
b += 2
- return buf
+ return buf[:b]
}
// ScreenInfoListBytes writes a list of ScreenInfo values to a byte slice.