From 8db88cceb758b5be23e7db1fe74a48102ab07dc0 Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Tue, 28 Jul 2026 14:16:05 -0500 Subject: terminal: add visibility reports Applications cannot infer whether their terminal view is observable from keyboard focus alone, so they may continue expensive rendering while the surface is hidden. Implement private mode 2033 and the one-shot visibility query. Report Wayland xdg_toplevel suspension as not visible and otherwise remain conservative by treating the terminal as potentially visible. Amp-Thread-ID: https://ampcode.com/threads/T-019fb2b7-f245-7124-a69a-1484812532bb Co-authored-by: Amp --- wayland.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'wayland.h') diff --git a/wayland.h b/wayland.h index 9cbd1023..b3543188 100644 --- a/wayland.h +++ b/wayland.h @@ -411,6 +411,7 @@ struct wl_window { bool is_fullscreen; bool is_maximized; bool is_resizing; + bool is_suspended; bool is_tiled_top; bool is_tiled_bottom; bool is_tiled_left; @@ -426,6 +427,7 @@ struct wl_window { int width; int height; bool is_activated:1; + bool is_suspended:1; bool is_fullscreen:1; bool is_maximized:1; bool is_resizing:1; -- cgit v1.3