summaryrefslogtreecommitdiff
path: root/vcl/osx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/osx')
-rw-r--r--vcl/osx/salframe.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/vcl/osx/salframe.cxx b/vcl/osx/salframe.cxx
index 6288c44b2ab1..686f346fb54f 100644
--- a/vcl/osx/salframe.cxx
+++ b/vcl/osx/salframe.cxx
@@ -455,6 +455,16 @@ void AquaSalFrame::Show(bool bVisible, bool bNoActivate)
OSX_SALDATA_RUNINMAIN( Show(bVisible, bNoActivate) )
+ // tdf#152173 Don't display tooltip windows when application is inactive
+ // Starting with macOS 13 Ventura, inactive applications receive mouse
+ // move events so when LibreOffice is inactive, a mouse move event causes
+ // a tooltip to be displayed. Since the tooltip window is attached to its
+ // parent window (to ensure that the tooltip is above the parent window),
+ // displaying a tooltip pulls the parent window in front of the windows
+ // of all other inactive applications.
+ if (bVisible && (mnStyle & SalFrameStyleFlags::TOOLTIP) && ![NSApp isActive])
+ return;
+
mbShown = bVisible;
if(bVisible)
{