aboutsummaryrefslogtreecommitdiff
path: root/nexgb/xevie/xevie.go
diff options
context:
space:
mode:
Diffstat (limited to 'nexgb/xevie/xevie.go')
-rw-r--r--nexgb/xevie/xevie.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/nexgb/xevie/xevie.go b/nexgb/xevie/xevie.go
index a8303a2..6da9158 100644
--- a/nexgb/xevie/xevie.go
+++ b/nexgb/xevie/xevie.go
@@ -82,9 +82,9 @@ func EventListBytes(buf []byte, list []Event) 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'