diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2025-01-11 16:36:07 +0100 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2025-01-11 16:36:07 +0100 |
| commit | 114c47a62436d53ae24ea3f56d45be6b886dc39a (patch) | |
| tree | 528ca0a091d2f51c8fc2ce95da42abb0392a7bf9 | |
| parent | 9441bed36a46867f92deb4bde483fd92ae58b181 (diff) | |
Increase max default buffer size to 1 MiB
Increasing the max default buffer size prevents clients from crashing
when they need more than 4096 bytes. This can happen when the GUI thread
of the application is blocked, especially when moving your mouse over it
with high mouse sensitivity.
| -rw-r--r-- | sway/server.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/server.c b/sway/server.c index e091d946..cbc0d259 100644 --- a/sway/server.c +++ b/sway/server.c @@ -222,6 +222,7 @@ bool server_init(struct sway_server *server) { server->wl_event_loop = wl_display_get_event_loop(server->wl_display); wl_display_set_global_filter(server->wl_display, filter_global, NULL); + wl_display_set_default_max_buffer_size(server->wl_display, 1024 * 1024); root = root_create(server->wl_display); |
