aboutsummaryrefslogtreecommitdiff
path: root/nexgb/damage/damage.go
diff options
context:
space:
mode:
Diffstat (limited to 'nexgb/damage/damage.go')
-rw-r--r--nexgb/damage/damage.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/nexgb/damage/damage.go b/nexgb/damage/damage.go
index 0ab7668..e94936d 100644
--- a/nexgb/damage/damage.go
+++ b/nexgb/damage/damage.go
@@ -162,13 +162,13 @@ func (v NotifyEvent) Bytes() []byte {
{
structBytes := v.Area.Bytes()
copy(buf[b:], structBytes)
- b += xgb.Pad(len(structBytes))
+ b += len(structBytes)
}
{
structBytes := v.Geometry.Bytes()
copy(buf[b:], structBytes)
- b += xgb.Pad(len(structBytes))
+ b += len(structBytes)
}
return buf