mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-19 23:14:55 +02:00
Set data size for SHM transmission as on some platforms the actual SHM size is not equal to the requested size
This commit is contained in:
@@ -545,6 +545,7 @@ func (self *GraphicsCommand) WriteWithPayloadTo(o io.StringWriter, payload []byt
|
||||
compressed := compress_with_zlib(payload)
|
||||
if len(compressed) < len(payload) {
|
||||
gc.SetCompression(GRT_compression_zlib)
|
||||
gc.SetDataSize(uint64(len(payload)))
|
||||
payload = compressed
|
||||
}
|
||||
data := base64.StdEncoding.EncodeToString(payload)
|
||||
|
||||
Reference in New Issue
Block a user