Increase default Wayland buffer size

The buffer size matches the one used in other compositors, e.g.:

- https://gitlab.gnome.org/GNOME/mutter/-/blob/49.4/src/wayland/meta-wayland.c?ref_type=tags#L970-971
This commit is contained in:
Ivan Molodetskikh
2026-03-07 07:43:59 +03:00
parent c7fa5f29d6
commit b82d52705e
3 changed files with 6 additions and 0 deletions
Generated
+1
View File
@@ -2258,6 +2258,7 @@ dependencies = [
"wayland-backend",
"wayland-client",
"wayland-scanner",
"wayland-server",
"xcursor",
"xshell",
"zbus",
+1
View File
@@ -94,6 +94,7 @@ tracing.workspace = true
tracy-client.workspace = true
wayland-backend = "0.3.14"
wayland-scanner = "0.31.9"
wayland-server = { version = "0.31.12", features = ["libwayland_1_23"] }
xcursor = "0.3.10"
zbus = { version = "5.13.2", optional = true }
+4
View File
@@ -169,6 +169,10 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
// Create the compositor.
let display = Display::new().unwrap();
// Increase the buffer size so that it's harder to crash a frozen client with a 1000 Hz mouse.
display.handle().set_default_max_buffer_size(1024 * 1024);
let mut state = State::new(
config,
event_loop.handle(),