mirror of
https://github.com/swaywm/sway.git
synced 2025-01-14 16:26:23 +01:00
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.
This commit is contained in:
parent
3629a832e5
commit
e3f0ba4cd9
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue