From: Stephan Witt Date: Sat, 16 Apr 2016 20:30:33 +0000 (+0200) Subject: Handle activateWindow in LFUN_BUFFER_SWITCH like in saveBufferIfNeeded() and doShowDi... X-Git-Tag: 2.2.2~151 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=24dfca3e2a5f9444cbf3f8169888a5b20993d8b9;p=features.git Handle activateWindow in LFUN_BUFFER_SWITCH like in saveBufferIfNeeded() and doShowDialog() methods. This is a requirement on Mac to get the current buffer view topmost after buffer switch. --- diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index c2101f3965..8133ac246f 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -3615,7 +3615,9 @@ void GuiView::dispatch(FuncRequest const & cmd, DispatchResult & dr) for (; i != ids.size(); ++i) { GuiView & gv = guiApp->view(ids[i]); if (gv.workArea(*buffer)) { + gv.raise(); gv.activateWindow(); + gv.setFocus(); gv.setBuffer(buffer); break; } diff --git a/status.22x b/status.22x index a75fc2b9e4..d05694fa14 100644 --- a/status.22x +++ b/status.22x @@ -57,6 +57,8 @@ What's new - Fix display of collapsable insets when the same document is shown in two views with different width (bug 9756). +- Raise GuiView on buffer switch to bring it topmost in multi-window mode. + * INTERNALS