changeset 30626:171414e74e9b stable

focus follows mouse event should not raise the window (bug #61770) * octave-dock-widget.cc (eventFilter): use setFocus() when mouse enters the widget instead of activate() preventing that the widget is always raised
author Lars Kindermann <lars.kindermann@reglos.de>
date Sat, 08 Jan 2022 05:41:54 +0100
parents 12030ead051f
children 579a21f74d6d
files libgui/src/octave-dock-widget.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/src/octave-dock-widget.cc	Sun Jan 09 18:12:41 2022 +0100
+++ b/libgui/src/octave-dock-widget.cc	Sat Jan 08 05:41:54 2022 +0100
@@ -626,7 +626,7 @@
     // for widgets docked to the main window (non floating) and activate
     // the widget currently under the mouse
     if (m_focus_follows_mouse && ! isFloating () && (e->type () == QEvent::Enter))
-      activate ();
+      setFocus ();
 
     return QDockWidget::eventFilter (obj, e);
   }