From e22cba35ef7b405758097a5f9436aae8fb4caaf0 Mon Sep 17 00:00:00 2001 From: Can Celik Date: Wed, 2 Sep 2026 22:45:51 +0300 Subject: fix: keep direct graphics bound to its client (#3549) --- src/app/pane_graphics.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/app/pane_graphics.rs') diff --git a/src/app/pane_graphics.rs b/src/app/pane_graphics.rs index 7b516116..e6c43fa1 100644 --- a/src/app/pane_graphics.rs +++ b/src/app/pane_graphics.rs @@ -65,6 +65,13 @@ impl Slot { .as_ref() .is_some_and(|active| active.load(std::sync::atomic::Ordering::Acquire)) } + + pub(crate) fn direct_client(&self) -> Option { + self.direct_gate + .as_ref() + .map(|gate| gate.client_id) + .or_else(|| self.layer.as_ref().and_then(Layer::resident_client)) + } } impl Drop for Slot { -- cgit v1.2.3