aboutsummaryrefslogtreecommitdiff
path: root/wayland.h
diff options
context:
space:
mode:
authorTim Culverhouse <tim@timculverhouse.com>2026-07-28 19:16:05 +0000
committerDaniel Eklöf <daniel@ekloef.se>2026-07-30 12:18:58 +0000
commit8db88cceb758b5be23e7db1fe74a48102ab07dc0 (patch)
tree2741b009de1520e2203d4b6695073422c77df738 /wayland.h
parentchangelog: add missing bug reference (diff)
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 <amp@ampcode.com>
Diffstat (limited to 'wayland.h')
-rw-r--r--wayland.h2
1 files changed, 2 insertions, 0 deletions
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;