mirror of
https://github.com/labwc/labwc.git
synced 2026-02-26 01:40:22 -05:00
src/server.c: increase max client buffer size to 1 MiB
Allows slow clients to better deal with large amounts of events coming in from labwc like from high refresh rate mice. Without this patch, the client is likely to get disconnected because the labwc side client write buffer is full.
This commit is contained in:
parent
74ab7e1779
commit
651ffe5744
2 changed files with 3 additions and 2 deletions
|
|
@ -431,9 +431,10 @@ server_init(struct server *server)
|
|||
wlr_log(WLR_ERROR, "cannot allocate a wayland display");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
/* Increase max client buffer size to make slow clients less likely to terminate */
|
||||
wl_display_set_default_max_buffer_size(server->wl_display, 1024 * 1024);
|
||||
|
||||
wl_display_set_global_filter(server->wl_display, server_global_filter, server);
|
||||
|
||||
server->wl_event_loop = wl_display_get_event_loop(server->wl_display);
|
||||
|
||||
/* Catch signals */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue