Feat: toggle to show hud only in a game (#2970)

* Add HUD visibility toggle for active games

* Add HUD visibility translations for all languages

* Fix HUD game visibility and Turkish strings

* Support compositor-only HUD game detection

* Fix HUD activity reconciliation and Steam focus

* Clear stale Gamescope focus metadata

* Clear stale Steam focus when metadata is unavailable

* Prevent HUD flicker on metadata read failures

* Prevent HUD visibility flicker

* Fix HUD visibility during compositor activity

* Fix HUD visibility during compositor activity

* Prevent Steam SHM frames activating HUD

* Fix HUD activity detection when Steam is focused

* Remove HUD detection comments

* Fix HUD game activity detection

* Fix HUD compositor activity detection

* Use Gamescope frames for HUD activity detection

* Restore fullscreen SHM frame statistics callback

* Restore fullscreen SHM frame statistics callback

* Fix HUD SHM frame reporting

* Prevent Steam focus from activating game-only HUD

* Fix SHM frame freshness guard and test harness

* Used suggestion code from rabbit

* Ignore Steam UI frames for game-only HUD

* Keep default HUD stats updating over Steam UI

* Isolate Steam fallback frame statistics

* Isolate Steam fallback frame statistics

* Trigger HUD APK build
This commit is contained in:
LunaDL authored and GitHub committed 2026-11-24 14:19:42 -05:00
1 parent e709e1c454
commit f920aad104
43 files changed
+190 -11

No files matched your search

+2 -1
View File
@@ -123,7 +123,8 @@ static int64_t now_ns(void) { return 0; }
static struct surface *g_hud_surface, *g_hud_shm;
static int64_t g_hud_shm_ns, g_hud_last_ns;
static int g_hud_new;
static void droiddeck_on_game_frame(void) {}
static void __attribute__((unused)) droiddeck_on_game_frame(void) {}
static void __attribute__((unused)) droiddeck_on_compositor_frame(void) {}
struct client_info { int asked_feedback, shm_frames; };
struct wl_shm_buffer { int w, h, stride; const void *data; };
#define WL_SHM_FORMAT_ARGB8888 0