From 9a1df7bb036cffbef206a3f2dbe46559b6f15d89 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sun, 17 Jan 2021 16:12:54 +0100 Subject: render: delay TIOCSWINSZ while doing an interactive resize Instead of disabling content centering, delay the TIOCSWINSZ (a.k.a delay sending the new dimensions to the client) by a small amount while doing an interactive resize. Non-interactive resizes are still immediate. For now, force a resize when the user stops the interactive resize. This ensures the client application receives the new dimensions immediately. It still works without the last, forced, resize, but there typically be a small delay until the client application receives the final dimensions. Closes #301 Closes #283 --- wayland.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'wayland.h') diff --git a/wayland.h b/wayland.h index d77e776b..b849249e 100644 --- a/wayland.h +++ b/wayland.h @@ -390,6 +390,8 @@ struct wl_window { bool is_tiled_left:1; bool is_tiled_right:1; } configure; + + int resize_timeout_fd; }; struct config; -- cgit v1.3