config: promote tweak.resize-delay-ms to a real, supported option

This commit is contained in:
Daniel Eklöf 2021-01-21 15:14:43 +01:00
parent 7cba42c5ce
commit 3a7588bc99
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
6 changed files with 39 additions and 38 deletions

View file

@ -2581,7 +2581,7 @@ send_dimensions_to_client(struct terminal *term)
{
struct wl_window *win = term->window;
if (!win->is_resizing || term->conf->tweak.resize_delay_ms == 0) {
if (!win->is_resizing || term->conf->resize_delay_ms == 0) {
/* Send new dimensions to client immediately */
tiocswinsz(term);
@ -2592,10 +2592,10 @@ send_dimensions_to_client(struct terminal *term)
}
} else {
/* Send new dimensions to client “in a while” */
assert(win->is_resizing && term->conf->tweak.resize_delay_ms > 0);
assert(win->is_resizing && term->conf->resize_delay_ms > 0);
int fd = win->resize_timeout_fd;
uint16_t delay_ms = term->conf->tweak.resize_delay_ms;
uint16_t delay_ms = term->conf->resize_delay_ms;
bool successfully_scheduled = false;
if (fd < 0) {