From f416bfecc61075d3dff69821b2d4503d6e1c4037 Mon Sep 17 00:00:00 2001
From: Kristóf Marussy <kristof@marussy.com>
Date: Tue, 29 Nov 2022 02:37:28 +0100
Subject: fix(frontend): reduce Android rendering errors

---
 subprojects/frontend/src/TopBar.tsx | 1 +
 1 file changed, 1 insertion(+)

(limited to 'subprojects/frontend/src/TopBar.tsx')

diff --git a/subprojects/frontend/src/TopBar.tsx b/subprojects/frontend/src/TopBar.tsx
index c943f7c4..0f757986 100644
--- a/subprojects/frontend/src/TopBar.tsx
+++ b/subprojects/frontend/src/TopBar.tsx
@@ -36,6 +36,7 @@ function useWindowControlsOverlayVisible(): boolean {
           'geometrychange',
           updateWindowControlsOverlayVisible,
         );
+        updateWindowControlsOverlayVisible.cancel();
       };
     }
     // Nothing to clean up if `windowControlsOverlay` is unsupported.
-- 
cgit v1.2.3-54-g00ecf

