Compare commits

...

2 commits

Author SHA1 Message Date
Skia
31ed37a70c Release 2.3.2
Bugfix release for big endian systems
2025-09-19 23:23:39 +02:00
Skia
59333d6804 fix: use NativeEndian to work also on big endian systems like s390x 2025-09-19 23:21:16 +02:00
4 changed files with 8 additions and 8 deletions

2
Cargo.lock generated
View file

@ -187,7 +187,7 @@ checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623"
[[package]]
name = "swaysome"
version = "2.3.1+git"
version = "2.3.2"
dependencies = [
"assert-json-diff",
"byteorder",

View file

@ -1,6 +1,6 @@
[package]
name = "swaysome"
version = "2.3.1+git"
version = "2.3.2"
authors = ["Skia <skia@hya.sk>", "Nabos <nabos@glargh.fr>"]
edition = "2021"
description = "swaysome provides an awesome way to manage your multiple outputs with the sway windows manager"

View file

@ -8,7 +8,7 @@ use std::mem;
use std::os::unix::net::UnixStream;
use std::path::Path;
use byteorder::{LittleEndian, ReadBytesExt, WriteBytesExt};
use byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt};
// Maximum workspaces per group. This will determine the naming.
// Examples:
@ -99,12 +99,12 @@ impl SwaySome {
msg_prefix[6..]
.as_mut()
.write_u32::<LittleEndian>(payload_length)
.write_u32::<NativeEndian>(payload_length)
.expect("Unable to write");
msg_prefix[10..]
.as_mut()
.write_u32::<LittleEndian>(msg_type)
.write_u32::<NativeEndian>(msg_type)
.expect("Unable to write");
let mut msg: Vec<u8> = msg_prefix[..].to_vec();
@ -142,7 +142,7 @@ impl SwaySome {
response_header[8],
response_header[9],
]);
let payload_length = v.read_u32::<LittleEndian>().unwrap();
let payload_length = v.read_u32::<NativeEndian>().unwrap();
let mut payload = vec![0; payload_length as usize];
socket.read_exact(&mut payload[..]).unwrap();

View file

@ -1,4 +1,4 @@
.TH SWAYSOME "1" "Sep 2025" "2.3.1" "User Commands"
.TH SWAYSOME "1" "Sep 2025" "2.3.2" "User Commands"
.
.
.SH NAME
@ -142,7 +142,7 @@ Print version
.
.
.SH "VERSION"
2.3.1
2.3.2
.
.
.SH "HOMEPAGE"