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.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/nexgb/xinerama/xinerama.go b/nexgb/xinerama/xinerama.go
index 7426e8e..28410c6 100644
--- a/nexgb/xinerama/xinerama.go
+++ b/nexgb/xinerama/xinerama.go
@@ -100,9 +100,9 @@ func ScreenInfoListBytes(buf []byte, list []ScreenInfo) int {
for _, item := range list {
structBytes = item.Bytes()
copy(buf[b:], structBytes)
- b += xgb.Pad(len(structBytes))
+ b += len(structBytes)
}
- return b
+ return xgb.Pad(b)
}
// Skipping definition for base type 'Bool'