# HG changeset patch # User Lars Kindermann # Date 1641616914 -3600 # Node ID 171414e74e9b1fdf810adbef633021d078f91d2a # Parent 12030ead051f95ca3c4ac198d5f18a8b6e5ab0c3 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 diff -r 12030ead051f -r 171414e74e9b libgui/src/octave-dock-widget.cc --- 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); }