From 74cf720546ece6d37473571eb6febe30ee1efdf7 Mon Sep 17 00:00:00 2001 From: JiDe Zhang Date: Thu, 26 Nov 2026 13:16:16 +0800 Subject: [PATCH] docs: clarify fullscreen state semantics for focus tracking The fullscreen state flag is only set when the toplevel is both fullscreen and holds keyboard focus. Update the protocol XML summary and enum description to reflect this behavior. Multica: WM-1147 --- dde/treeland-foreign-toplevel-manager-unstable-v3.xml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dde/treeland-foreign-toplevel-manager-unstable-v3.xml b/dde/treeland-foreign-toplevel-manager-unstable-v3.xml index 981a6d6..8f74bd5 100644 --- a/dde/treeland-foreign-toplevel-manager-unstable-v3.xml +++ b/dde/treeland-foreign-toplevel-manager-unstable-v3.xml @@ -166,11 +166,17 @@ These correspond to the states with the same names defined in the xdg-toplevel interface. Each flag is encoded as a uint32 value in the array sent by the state event. + + Note: the fullscreen flag is only set when the toplevel is + both fullscreen and holds keyboard focus. A fullscreen + toplevel that loses focus remains fullscreen but this flag + is cleared. Consumers that need to detect any fullscreen + window should not rely on this flag alone. - +