mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
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.
This commit is contained in:
parent
9a1afbf3ff
commit
1719fa6c6a
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user