From cc0003a8d5c5395e22f051bb9b244098712394a3 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Sat, 29 Jun 2024 10:34:57 +0100 Subject: [PATCH 1/2] fix mouse flicker --- src/textual/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/textual/app.py b/src/textual/app.py index cd70647cc4..6fff775bc1 100644 --- a/src/textual/app.py +++ b/src/textual/app.py @@ -2319,7 +2319,7 @@ def _update_mouse_over(self, screen: Screen) -> None: """ - if self.mouse_over is None: + if self.mouse_over is None or not screen.is_active: return async def check_mouse() -> None: From 566408499d57231fb7862a4cd2a4aace337598a4 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Sat, 29 Jun 2024 10:35:55 +0100 Subject: [PATCH 2/2] changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 084829b866..4ab26e56ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Fixed grid + keyline when the grid has auto dimensions https://github.com/Textualize/textual/pull/4680 - Fixed mouse code leakage https://github.com/Textualize/textual/pull/4681 - Fixed link inside markdown table not posting a `Markdown.LinkClicked` message https://github.com/Textualize/textual/issues/4683 +- Fixed issue with mouse movements on non-active screen https://github.com/Textualize/textual/pull/4688 ## [0.70.0] - 2024-06-19