From 75dbfdb2abb576077546a4c944b179e9b827e204 Mon Sep 17 00:00:00 2001 From: Steven Zeltmann Date: Thu, 25 Jul 2024 17:34:30 -0400 Subject: [PATCH] only show tooltip when window is active --- pyproject.toml | 2 +- src/py4D_browser/update_views.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index b1b145f..9f62f67 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "py4D_browser" -version = "1.1.0" +version = "1.1.1" authors = [ { name="Steven Zeltmann", email="steven.zeltmann@lbl.gov" }, ] diff --git a/src/py4D_browser/update_views.py b/src/py4D_browser/update_views.py index 8125baa..cf4d305 100644 --- a/src/py4D_browser/update_views.py +++ b/src/py4D_browser/update_views.py @@ -559,7 +559,11 @@ def update_tooltip(self): modifier_keys = QApplication.queryKeyboardModifiers() # print(self.isHidden()) - if QtCore.Qt.ControlModifier == modifier_keys and self.datacube is not None: + if ( + QtCore.Qt.ControlModifier == modifier_keys + and self.datacube is not None + and self.isActiveWindow() + ): global_pos = QCursor.pos() for scene, data in [