Mercurial > octave
diff libgui/src/octave-dock-widget.cc @ 25396:75fef3484d12
Prevent hidden predecessor windows appearing when successor is floated (bug #53357)
* octave-dock-widget.cc (octave_dock_widget::set_focus_predecessor): Only
refocus the predecessor if it is visible.
author | Daniel J Sebald <daniel.sebald@ieee.org> |
---|---|
date | Fri, 16 Mar 2018 02:29:30 -0500 |
parents | 9b67c2294129 |
children | e00aa6a75edd |
line wrap: on
line diff
--- a/libgui/src/octave-dock-widget.cc Fri May 18 19:31:24 2018 -0400 +++ b/libgui/src/octave-dock-widget.cc Fri Mar 16 02:29:30 2018 -0500 @@ -687,7 +687,8 @@ void octave_dock_widget::set_focus_predecessor (void) { - if (m_predecessor_widget) // only != 0 if widget was tabbed + // only != 0 if widget was tabbed + if (m_predecessor_widget && m_predecessor_widget->isVisible ()) m_predecessor_widget->focus (); m_predecessor_widget = nullptr;