X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt%2FDockView.cpp;h=d6ba3c0ba913eb8d444a01e6ffd4115dd9609ed2;hb=ceb03b1815583a7daf6166562f6d928d7d38b356;hp=b0f0be4cb5b1a26f2f6e4c9565d1af70f3151857;hpb=61824e057e95874fee4741f7498ea485b1f16603;p=lyx.git diff --git a/src/frontends/qt/DockView.cpp b/src/frontends/qt/DockView.cpp index b0f0be4cb5..d6ba3c0ba9 100644 --- a/src/frontends/qt/DockView.cpp +++ b/src/frontends/qt/DockView.cpp @@ -14,6 +14,8 @@ #include "DockView.h" #include "GuiView.h" +#include + namespace lyx { namespace frontend { @@ -29,6 +31,11 @@ DockView::DockView(GuiView & parent, QString const & name, hide(); connect(&parent, SIGNAL(bufferViewChanged()), this, SLOT(onBufferViewChanged())); + + // Make dock widgets sub windows to prevent focusNextPrevChild + // (Tab key) switching to the parent rather than to the next + // widget in the pane (#12170) + setWindowFlags(Qt::SubWindow); }