aboutsummaryrefslogtreecommitdiff
path: root/nexgb/xinerama/xinerama.go
diff options
context:
space:
mode:
Diffstat (limited to 'nexgb/xinerama/xinerama.go')
-rw-r--r--nexgb/xinerama/xinerama.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/nexgb/xinerama/xinerama.go b/nexgb/xinerama/xinerama.go
index 28410c6..75c773c 100644
--- a/nexgb/xinerama/xinerama.go
+++ b/nexgb/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.