mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-22 02:01:55 +07:00
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:
Generated
+1
@@ -2258,6 +2258,7 @@ dependencies = [
|
||||
"wayland-backend",
|
||||
"wayland-client",
|
||||
"wayland-scanner",
|
||||
"wayland-server",
|
||||
"xcursor",
|
||||
"xshell",
|
||||
"zbus",
|
||||
|
||||
@@ -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 }
|
||||
|
||||
|
||||
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user