From 2ea857a07cc5884e27bb3a8c152969193f1053c7 Mon Sep 17 00:00:00 2001 From: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com> Date: Thu, 19 Nov 2026 10:57:00 -0500 Subject: [PATCH] fix(agent): keep the closed pet chat off the app below (#2868) --- .../main/java/com/droiddeck/launcher/ui/AgentPetWindows.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/droiddeck/launcher/ui/AgentPetWindows.kt b/app/src/main/java/com/droiddeck/launcher/ui/AgentPetWindows.kt index cea5fcaf3b..72e5d0b635 100644 --- a/app/src/main/java/com/droiddeck/launcher/ui/AgentPetWindows.kt +++ b/app/src/main/java/com/droiddeck/launcher/ui/AgentPetWindows.kt @@ -397,11 +397,14 @@ internal class PetWindows(private val context: Context) { /** * The chat window is always drawn; closed, it waits off the screen and takes neither touches nor - * keys, so opening it is a move and not a first layout. + * keys, so opening it is a move and not a first layout. Only FLAG_LAYOUT_NO_LIMITS keeps it off the + * screen: without it the system moves the window back over the app below, where every touch reaches + * that app marked obscured, and apps that filter obscured touches, such as GitHub, ignore them all. */ private fun showChat(on: Boolean) { chat.params.x = if (on) 0 else OFFSCREEN - val quiet = WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE or WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE + val quiet = WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE or WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE or + WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS chat.params.flags = if (on) chat.params.flags and quiet.inv() else chat.params.flags or quiet if (added) runCatching { windows.updateViewLayout(chat.view, chat.params) } }